diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-22 07:43:34 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-09-22 07:43:34 +0200 |
commit | f91f57f12c2266db28b9e81254ce494c07e8db35 (patch) | |
tree | 5b949b2db72d7d345307ea56088ab1bc586a70be /src/plugins/irc/irc-command.c | |
parent | 91a748b8e77ae32c2e06529d7ec70b3a8931b6a6 (diff) | |
download | weechat-f91f57f12c2266db28b9e81254ce494c07e8db35.zip |
irc: fix type of value stored in hashtable when joining a channel (closes #211)
Diffstat (limited to 'src/plugins/irc/irc-command.c')
-rw-r--r-- | src/plugins/irc/irc-command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 05885c6ed..93a391cc8 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2202,7 +2202,7 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments, char *new_args, **channels, **keys, *pos_space, *pos_keys, *pos_channel; char *channel_name; int i, num_channels, num_keys, length; - int time_now; + time_t time_now; struct t_irc_channel *ptr_channel; if (server->sock < 0) @@ -2265,7 +2265,7 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments, } } new_args[0] = '\0'; - time_now = (int)time (NULL); + time_now = time (NULL); for (i = 0; i < num_channels; i++) { if (i > 0) |