mirror of
https://github.com/weechat/weechat.git
synced 2026-06-26 12:56:37 +02:00
irc: add "#" before any channel in /join, even /join 0 (closes #20)
This commit is contained in:
@@ -59,6 +59,7 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
* api: add integer return code for functions hook_{signal|hsignal}_send
|
||||
* alias: change default command for alias /beep to "/print -beep"
|
||||
* guile: fix module used after unload of a script
|
||||
* irc: add "#" before any channel in /join, even /join 0 (closes #20)
|
||||
* irc: display output of CAP LIST in server buffer
|
||||
* irc: fix colors in message with CTCP reply sent to another user
|
||||
* irc: evaluate content of server options "username" and "realname"
|
||||
|
||||
@@ -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, "#");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user