summaryrefslogtreecommitdiff
path: root/tests/unit/plugins/irc/test-irc-protocol.cpp
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-06-21 18:39:36 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-06-26 22:12:31 +0200
commit1d4509ddd88a91efd3b6420cc2af6b6d0246af5f (patch)
tree1022747b8421235a0e4a945604436871134b9da5 /tests/unit/plugins/irc/test-irc-protocol.cpp
parentb4da825f60cbf462bc63b44e344638b2813fd231 (diff)
downloadweechat-1d4509ddd88a91efd3b6420cc2af6b6d0246af5f.zip
irc: fix display of country code in message 344 received as whois geo info (issue #1736)
Diffstat (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 36011b5c4..854047ca1 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -4325,7 +4325,12 @@ TEST(IrcProtocolWithServer, 344)
/* whois, geo info (UnrealIRCd) */
RECV(":server 344 alice bob FR :is connecting from France");
- CHECK_SRV("--", "[bob] FR is connecting from France",
+ CHECK_SRV("--", "[bob] is connecting from France (FR)",
+ "irc_344,irc_numeric,log3");
+
+ /* whois, geo info (UnrealIRCd), no country code */
+ RECV(":server 344 alice bob :is connecting from France");
+ CHECK_SRV("--", "[bob] is connecting from France",
"irc_344,irc_numeric,log3");
}