1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +02:00

irc: add support of TAGMSG messages (issue #1654)

This commit is contained in:
Sébastien Helleu
2021-06-21 21:35:29 +02:00
parent 23c46c3f2b
commit 8ea1ee06e5
3 changed files with 40 additions and 0 deletions
@@ -1303,6 +1303,28 @@ TEST(IrcProtocolWithServer, setname_with_setname_cap)
STRCMP_EQUAL("new realname2", ptr_nick->realname);
}
/*
* Tests functions:
* irc_protocol_cb_tagmsg
*/
TEST(IrcProtocolWithServer, tagmsg)
{
server_recv (":server 001 alice");
server_recv (":alice!user@host JOIN #test");
server_recv (":bob!user@host JOIN #test");
/* not enough arguments */
server_recv (":bob!user@host TAGMSG");
/* no tags */
server_recv (":bob!user@host TAGMSG #test");
/* with tags */
server_recv ("@tag1=123;tag2=456 :bob!user@host TAGMSG #test");
}
/*
* Tests functions:
* irc_protocol_cb_topic