mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 13:56:37 +02:00
irc: use parsed command parameters in "331" command callback
This commit is contained in:
@@ -2787,11 +2787,11 @@ TEST(IrcProtocolWithServer, 331)
|
||||
{
|
||||
SRV_INIT_JOIN;
|
||||
|
||||
/* not enough arguments */
|
||||
/* not enough parameters */
|
||||
RECV(":server 331");
|
||||
CHECK_ERROR_ARGS("331", 2, 4);
|
||||
CHECK_ERROR_PARAMS("331", 0, 2);
|
||||
RECV(":server 331 alice");
|
||||
CHECK_ERROR_ARGS("331", 3, 4);
|
||||
CHECK_ERROR_PARAMS("331", 1, 2);
|
||||
|
||||
RECV(":server 331 alice #test");
|
||||
CHECK_CHAN("-- No topic set for channel #test");
|
||||
|
||||
Reference in New Issue
Block a user