1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

irc: add "#" before any channel in /join, even /join 0 (closes #20)

This commit is contained in:
Sebastien Helleu
2014-03-12 22:00:05 +01:00
parent ace01aff50
commit 86e12946a5
2 changed files with 2 additions and 4 deletions
+1 -4
View File
@@ -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, "#");
}