1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

irc: fix colors in MODE message (issue #2286)

This commit is contained in:
Sébastien Helleu
2025-11-22 10:31:57 +01:00
parent 790ce13843
commit e33ed57b47
3 changed files with 12 additions and 2 deletions
@@ -2316,6 +2316,16 @@ TEST(IrcProtocolWithServer, mode)
"irc_mode,nick_admin,host_user@host,log3");
STRCMP_EQUAL(NULL, ptr_channel->modes);
/* ban added on channel */
RECV(":admin!user@host MODE #test +b bob!user_\00304red@host_\00304red");
CHECK_CHAN("--", "Mode #test [+b bob!user_red@host_red] by admin",
"irc_mode,nick_admin,host_user@host,log3");
/* ban removed from channel */
RECV(":admin!user@host MODE #test -b bob!user_\00304red@host_\00304red");
CHECK_CHAN("--", "Mode #test [-b bob!user_red@host_red] by admin",
"irc_mode,nick_admin,host_user@host,log3");
/* nick mode '@' on channel #test */
RECV(":admin!user@host MODE #test +o alice ");
CHECK_CHAN("--", "Mode #test [+o alice] by admin",