diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-12 22:00:05 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-03-12 22:00:05 +0100 |
commit | 86e12946a5fc44c04f31248378740ee1265deebb (patch) | |
tree | 9ab450ef2727494f16c9db08189666a9a8164b5d /src/plugins | |
parent | ace01aff5002778b87a2cbb205761d6fdb1ce9c9 (diff) | |
download | weechat-86e12946a5fc44c04f31248378740ee1265deebb.zip |
irc: add "#" before any channel in /join, even /join 0 (closes #20)
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/irc/irc-command.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/irc/irc-command.c b/src/plugins/irc/irc-command.c index 2395639f0..32f228d18 100644 --- a/src/plugins/irc/irc-command.c +++ b/src/plugins/irc/irc-command.c @@ -2172,8 +2172,6 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments, /* * add "#" in front of each channel if no prefix is given - * (exception if there is only "0", which is a special join argument to - * part all channels) */ if (channels) { @@ -2203,8 +2201,7 @@ irc_command_join_server (struct t_irc_server *server, const char *arguments, if (i > 0) strcat (new_args, ","); pos_channel = new_args + strlen (new_args); - if (((num_channels > 1) || (strcmp (channels[i], "0") != 0)) - && !irc_channel_is_channel (server, channels[i])) + if (!irc_channel_is_channel (server, channels[i])) { strcat (new_args, "#"); } |