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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user