diff options
author | Marius Halden <marius.h@lden.org> | 2016-08-02 13:29:42 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2016-08-02 13:29:42 +0200 |
commit | 53aa23d5867ef008cfcf82dccf81146630be27f8 (patch) | |
tree | 1ee116a7c76ed2bd7f8b7b5f0573dd0bbb9660ad /irc.c | |
parent | a18f767c1f71f9884ff7f23752db025748713d9e (diff) |
Add autosave after 30 sec
Diffstat (limited to 'irc.c')
-rw-r--r-- | irc.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -65,6 +65,8 @@ irc_t *irc_new(int fd) irc->iconv = (GIConv) - 1; irc->oconv = (GIConv) - 1; + irc->save_source_id = -1; + if (global.conf->hostname) { myhost = g_strdup(global.conf->hostname); } else if (getsockname(irc->fd, (struct sockaddr*) &sock, &socklen) == 0) { @@ -103,6 +105,7 @@ irc_t *irc_new(int fd) b->ui = &irc_ui_funcs; s = set_add(&b->set, "allow_takeover", "true", set_eval_bool, irc); + s = set_add(&b->set, "auto_save", "true", set_eval_bool, irc); s = set_add(&b->set, "away_devoice", "true", set_eval_bw_compat, irc); s->flags |= SET_HIDDEN; s = set_add(&b->set, "away_reply_timeout", "3600", set_eval_int, irc); |