summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-01-05 08:24:04 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-01-05 08:24:04 +0100
commit0d6b18bc543fc34f0299f625625f1cf9e464b7ec (patch)
tree25bb44e1e80e3bd56ad29b0535e3224e09fba52f /tests/unit
parent8c49475f7576bd9eadb9816a9c725a2df99e85f6 (diff)
downloadweechat-0d6b18bc543fc34f0299f625625f1cf9e464b7ec.zip
irc: fix parsing of message 338 (whois, host) sent by Rizon server (closes #1737)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 11d67200e..dc7a601d8 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -2924,16 +2924,18 @@ TEST(IrcProtocolWithServer, 338)
/* not enough parameters */
RECV(":server 338");
- CHECK_ERROR_PARAMS("338", 0, 4);
+ CHECK_ERROR_PARAMS("338", 0, 3);
RECV(":server 338 alice");
- CHECK_ERROR_PARAMS("338", 1, 4);
+ CHECK_ERROR_PARAMS("338", 1, 3);
RECV(":server 338 alice bob");
- CHECK_ERROR_PARAMS("338", 2, 4);
- RECV(":server 338 alice bob hostname");
- CHECK_ERROR_PARAMS("338", 3, 4);
+ CHECK_ERROR_PARAMS("338", 2, 3);
RECV(":server 338 alice bob hostname :actually using host");
CHECK_SRV("-- [bob] actually using host hostname");
+
+ /* on Rizon server */
+ RECV(":server 338 alice bob :is actually bob@example.com [1.2.3.4]");
+ CHECK_SRV("-- [bob] is actually bob@example.com [1.2.3.4]");
}
/*