mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 12:26:40 +02:00
irc: ignore self join if the channel is already joined (closes #2291)
There is an issue with some IRC servers that may send a JOIN with self nick once already on the channel, this results in a clear of the nicklist on the second JOIN received. This fix silently ignores the second self JOIN if the channel is already joined (with at least one nick).
This commit is contained in:
@@ -1753,6 +1753,9 @@ IRC_PROTOCOL_CALLBACK(join)
|
||||
ptr_channel = irc_channel_search (ctxt->server, ctxt->params[0]);
|
||||
if (ptr_channel)
|
||||
{
|
||||
/* ignore self join if the channel is already joined */
|
||||
if (ctxt->nick_is_me && ptr_channel->nicks)
|
||||
return WEECHAT_RC_OK;
|
||||
ptr_channel->part = 0;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user