summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2023-05-16 13:15:45 +0200
committerSébastien Helleu <flashcode@flashtux.org>2023-05-16 13:15:45 +0200
commit2a3d98c996eeefcaed1559eebfadc74146e0be53 (patch)
treeb4ce178986ada6ed631c9df0088f8fa41f16a676 /tests/unit
parent8d35e67dd6bb6c8d20c71d9f78060cb9dbded98c (diff)
downloadweechat-2a3d98c996eeefcaed1559eebfadc74146e0be53.zip
irc: display command 437 on server buffer when nickname cannot change while banned on channel (closes #88)
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/plugins/irc/test-irc-protocol.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/plugins/irc/test-irc-protocol.cpp b/tests/unit/plugins/irc/test-irc-protocol.cpp
index 4bde26ec8..c99ef13bb 100644
--- a/tests/unit/plugins/irc/test-irc-protocol.cpp
+++ b/tests/unit/plugins/irc/test-irc-protocol.cpp
@@ -4289,7 +4289,7 @@ TEST(IrcProtocolWithServer, 437_not_connected)
TEST(IrcProtocolWithServer, 437_connected)
{
- SRV_INIT;
+ SRV_INIT_JOIN;
/* not enough parameters */
RECV(":server 437");
@@ -4303,6 +4303,8 @@ TEST(IrcProtocolWithServer, 437_connected)
CHECK_SRV("-- * alice error");
RECV(":server 437 * alice :Nick/channel is temporarily unavailable");
CHECK_SRV("-- * alice Nick/channel is temporarily unavailable");
+ RECV(":server 437 alice #test :Cannot change nickname while banned on channel");
+ CHECK_SRV("-- #test: Cannot change nickname while banned on channel");
}
/*