1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

irc: display CHGHOST command in private buffers

This commit is contained in:
Sébastien Helleu
2022-08-13 22:15:29 +02:00
parent ac50a5dda7
commit d3b84eaf6c
3 changed files with 65 additions and 33 deletions
@@ -879,6 +879,8 @@ TEST(IrcProtocolWithServer, chghost)
SRV_INIT_JOIN2;
RECV(":bob!user@host PRIVMSG alice :hi Alice!");
ptr_nick = ptr_server->channels->nicks;
ptr_nick2 = ptr_server->channels->last_nick;
@@ -913,6 +915,7 @@ TEST(IrcProtocolWithServer, chghost)
RECV(":bob!user@host CHGHOST user_bob_2 host_bob_2");
CHECK_CHAN("-- bob (user@host) has changed host to user_bob_2@host_bob_2");
STRCMP_EQUAL("user_bob_2@host_bob_2", ptr_nick2->host);
CHECK_PV("bob", "-- bob (user@host) has changed host to user_bob_2@host_bob_2");
}
/*