1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

irc: add message 415 (cannot send message to channel)

This commit is contained in:
Sébastien Helleu
2023-04-24 21:43:57 +02:00
parent 9f5e8efbe0
commit 28bb33aa5a
3 changed files with 25 additions and 0 deletions
@@ -3830,6 +3830,29 @@ TEST(IrcProtocolWithServer, 404)
CHECK_SRV("-- #test2: Cannot send to channel");
}
/*
* Tests functions:
* irc_protocol_cb_415 (cannot send to channel)
*/
TEST(IrcProtocolWithServer, 415)
{
SRV_INIT_JOIN;
/* not enough parameters */
RECV(":server 415");
CHECK_ERROR_PARAMS("415", 0, 2);
RECV(":server 415 alice");
CHECK_ERROR_PARAMS("415", 1, 2);
RECV(":server 415 alice #test");
CHECK_SRV("-- #test");
RECV(":server 415 alice #test :Cannot send message to channel (+R)");
CHECK_CHAN("-- #test: Cannot send message to channel (+R)");
RECV(":server 415 alice #test2 :Cannot send message to channel (+R)");
CHECK_SRV("-- #test2: Cannot send message to channel (+R)");
}
/*
* Tests functions:
* irc_protocol_cb_432 (erroneous nickname, not connected)