1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 21:36:37 +02:00

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

This commit is contained in:
Sébastien Helleu
2021-10-14 21:42:47 +02:00
parent 5123483c33
commit d8c7cf41b5
2 changed files with 54 additions and 68 deletions
+3 -3
View File
@@ -1321,11 +1321,11 @@ TEST(IrcProtocolWithServer, notice)
/* not enough arguments */
RECV("NOTICE");
CHECK_ERROR_ARGS("notice", 1, 3);
CHECK_ERROR_PARAMS("notice", 0, 2);
RECV("NOTICE AUTH");
CHECK_ERROR_ARGS("notice", 2, 3);
CHECK_ERROR_PARAMS("notice", 1, 2);
RECV(":bob!user@host NOTICE");
CHECK_ERROR_ARGS("notice", 2, 3);
CHECK_ERROR_PARAMS("notice", 0, 2);
RECV(":bob!user@host NOTICE #test");
CHECK_ERROR_PARSE("notice", ":bob!user@host NOTICE #test");
RECV(":bob!user@host NOTICE alice");