diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-16 18:38:39 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2013-02-16 18:38:39 +0100 |
commit | 8b875cd4121acaf8edbefcb2730cd9b396af0b01 (patch) | |
tree | 48cb4755c00c43aab6a805f36817bba060652e4f /src/plugins | |
parent | c1bc23b052e47dd2b2994f971384fdc7cacd327b (diff) | |
download | weechat-8b875cd4121acaf8edbefcb2730cd9b396af0b01.zip |
irc: fix type of values in hashtables join_manual/join_noswitch, fix delay for purge
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-server.c b/src/plugins/irc/irc-server.c index ff80397bf..8327f159c 100644 --- a/src/plugins/irc/irc-server.c +++ b/src/plugins/irc/irc-server.c @@ -959,7 +959,7 @@ irc_server_alloc (const char *name) new_server->last_notify = NULL; new_server->join_manual = weechat_hashtable_new (32, WEECHAT_HASHTABLE_STRING, - WEECHAT_HASHTABLE_INTEGER, + WEECHAT_HASHTABLE_TIME, NULL, NULL); new_server->join_channel_key = weechat_hashtable_new (32, @@ -969,7 +969,7 @@ irc_server_alloc (const char *name) NULL); new_server->join_noswitch = weechat_hashtable_new (32, WEECHAT_HASHTABLE_STRING, - WEECHAT_HASHTABLE_STRING, + WEECHAT_HASHTABLE_TIME, NULL, NULL); new_server->buffer = NULL; @@ -2693,7 +2693,7 @@ irc_server_check_join_manual_cb (void *data, struct t_hashtable *hashtable, server = (struct t_irc_server *)data; if (server) { - if (*((int *)value) + (60 * 5) < time (NULL)) + if (*((time_t *)value) + (60 * 10) < time (NULL)) weechat_hashtable_remove (hashtable, key); } } @@ -2712,7 +2712,7 @@ irc_server_check_join_noswitch_cb (void *data, struct t_hashtable *hashtable, server = (struct t_irc_server *)data; if (server) { - if (*((int *)value) + (60 * 5) < time (NULL)) + if (*((time_t *)value) + (60 * 10) < time (NULL)) weechat_hashtable_remove (hashtable, key); } } |