summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-03-31 21:16:09 +0200
committerSébastien Helleu <flashcode@flashtux.org>2020-03-31 21:16:09 +0200
commitc59f812c740cf891e3fe34cee51f594fd21c71d7 (patch)
tree479abcdb7ff6b3852331b6530bda325fecd7a8c5
parenteb7b12f0da64b62f9c47d646355e97c4d55d8f60 (diff)
downloadweechat-c59f812c740cf891e3fe34cee51f594fd21c71d7.zip
tests: add tests on function irc_protocol_cb_353 with option irc.look.color_nicks_in_names set to on
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 185c4299c..3da04a9f7 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2164,6 +2164,11 @@ TEST(IrcProtocolWithServer, 353)
server_recv (":server 353 alice = #test :alice");
server_recv (":server 353 alice = #test :alice bob @carol +dan!user@host");
+ /* with option irc.look.color_nicks_in_names enabled */
+ config_file_option_set (irc_config_look_color_nicks_in_names, "on", 1);
+ server_recv (":server 353 alice = #test :alice bob @carol +dan!user@host");
+ config_file_option_unset (irc_config_look_color_nicks_in_names);
+
/* channel not found */
server_recv (":server 353 alice #xyz");
server_recv (":server 353 alice #xyz :alice");