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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user