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

irc: fix parsing of message 338 (whois, host) sent by Rizon server (closes #1737)

This commit is contained in:
Sébastien Helleu
2022-01-05 08:24:04 +01:00
parent 8c49475f75
commit 0d6b18bc54
3 changed files with 39 additions and 26 deletions
+7 -5
View File
@@ -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]");
}
/*