From 1d4509ddd88a91efd3b6420cc2af6b6d0246af5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Wed, 21 Jun 2023 18:39:36 +0200 Subject: irc: fix display of country code in message 344 received as whois geo info (issue #1736) --- tests/unit/plugins/irc/test-irc-protocol.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/unit/plugins/irc/test-irc-protocol.cpp') 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"); } -- cgit v1.2.3