1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 09:13:14 +02:00

irc: display messages 730/731 even if command /notify was not used (closes #2049)

This commit is contained in:
Sébastien Helleu
2023-11-29 18:14:37 +01:00
parent 0f1b18d415
commit 22fcb91e8b
5 changed files with 129 additions and 33 deletions
+20
View File
@@ -7640,7 +7640,17 @@ IRC_PROTOCOL_CALLBACK(730)
monitor_host++;
ptr_notify = irc_notify_search (ctxt->server, monitor_nick);
if (ptr_notify)
{
irc_notify_set_is_on_server (ptr_notify, monitor_host, 1);
}
else
{
irc_notify_display_is_on (ctxt->server,
monitor_nick,
monitor_host,
NULL, /* notify */
1);
}
}
weechat_string_free_split (nicks);
}
@@ -7688,7 +7698,17 @@ IRC_PROTOCOL_CALLBACK(731)
monitor_host++;
ptr_notify = irc_notify_search (ctxt->server, monitor_nick);
if (ptr_notify)
{
irc_notify_set_is_on_server (ptr_notify, monitor_host, 0);
}
else
{
irc_notify_display_is_on (ctxt->server,
monitor_nick,
monitor_host,
NULL, /* notify */
0);
}
}
weechat_string_free_split (nicks);
}