1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

irc: use parsed command parameters in "wallops" command callback

This commit is contained in:
Sébastien Helleu
2021-10-15 19:25:43 +02:00
parent 7c1ea1cb32
commit ec816b4be5
2 changed files with 15 additions and 5 deletions
+5 -2
View File
@@ -1927,9 +1927,12 @@ TEST(IrcProtocolWithServer, wallops)
{
SRV_INIT;
/* not enough arguments */
/* not enough parameters */
RECV(":alice!user@host WALLOPS");
CHECK_ERROR_ARGS("wallops", 2, 3);
CHECK_ERROR_PARAMS("wallops", 0, 1);
RECV(":alice!user@host WALLOPS message");
CHECK_SRV("-- Wallops from alice (user@host): message");
RECV(":alice!user@host WALLOPS :message from admin");
CHECK_SRV("-- Wallops from alice (user@host): message from admin");