mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 06:05:42 +02:00
irc: display ACCOUNT command in private buffers
This commit is contained in:
+1
-1
@@ -34,7 +34,7 @@ Bug fixes::
|
||||
* irc: fix display of TOPIC and QUIT messages with an empty trailing parameter (issue #1797)
|
||||
* irc: fix parsing of messages with trailing spaces and no trailing parameter (issue #1803)
|
||||
* irc: add missing tag "irc_numeric" in all numeric IRC commands (issue #1804)
|
||||
* irc: display CHGHOST command in private buffers
|
||||
* irc: display ACCOUNT and CHGHOST commands in private buffers
|
||||
* guile: fix function hdata_get_string
|
||||
* javascript: fix return of long value in functions infolist_time, hdata_long and hdata_time
|
||||
* php: fix function hdata_compare
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -662,32 +662,38 @@ TEST(IrcProtocolWithServer, account_without_account_notify_cap)
|
||||
{
|
||||
struct t_irc_nick *ptr_nick;
|
||||
|
||||
SRV_INIT_JOIN;
|
||||
SRV_INIT_JOIN2;
|
||||
|
||||
ptr_nick = ptr_server->channels->nicks;
|
||||
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
|
||||
|
||||
ptr_nick = ptr_server->channels->last_nick;
|
||||
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
/* not enough parameters */
|
||||
RECV(":alice!user@host ACCOUNT");
|
||||
RECV(":bob!user@host ACCOUNT");
|
||||
CHECK_ERROR_PARAMS("account", 0, 1);
|
||||
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
RECV(":alice!user@host ACCOUNT *");
|
||||
CHECK_CHAN("-- alice has unidentified");
|
||||
RECV(":bob!user@host ACCOUNT *");
|
||||
CHECK_CHAN("-- bob has unidentified");
|
||||
CHECK_PV("bob", "-- bob has unidentified");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
RECV(":alice!user@host ACCOUNT :*");
|
||||
CHECK_CHAN("-- alice has unidentified");
|
||||
RECV(":bob!user@host ACCOUNT :*");
|
||||
CHECK_CHAN("-- bob has unidentified");
|
||||
CHECK_PV("bob", "-- bob has unidentified");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
RECV(":alice!user@host ACCOUNT new_account");
|
||||
CHECK_CHAN("-- alice has identified as new_account");
|
||||
RECV(":bob!user@host ACCOUNT new_account");
|
||||
CHECK_CHAN("-- bob has identified as new_account");
|
||||
CHECK_PV("bob", "-- bob has identified as new_account");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
|
||||
RECV(":alice!user@host ACCOUNT :new_account");
|
||||
CHECK_CHAN("-- alice has identified as new_account");
|
||||
RECV(":bob!user@host ACCOUNT :new_account");
|
||||
CHECK_CHAN("-- bob has identified as new_account");
|
||||
CHECK_PV("bob", "-- bob has identified as new_account");
|
||||
POINTERS_EQUAL(NULL, ptr_nick->account);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user