From 1cd32a9069dd898829590041971e28abcdc181e2 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Fri, 12 Apr 2024 11:03:36 +0200 Subject: [PATCH] Allow trailing space in RPL_WHOISCHANNELS --- irctest/server_tests/whois.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/irctest/server_tests/whois.py b/irctest/server_tests/whois.py index b9c1b3c..760573c 100644 --- a/irctest/server_tests/whois.py +++ b/irctest/server_tests/whois.py @@ -96,7 +96,9 @@ class _WhoisTestMixin(cases.BaseServerTestCase): params=[ "nick1", "nick2", - StrRe("(@#chan1 @#chan2|@#chan2 @#chan1)"), + # trailing space was required by the RFCs, and Modern explicitly + # allows it + StrRe("(@#chan1 @#chan2|@#chan2 @#chan1) ?"), ], ) elif m.command == RPL_WHOISSPECIAL: