diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-06-21 21:35:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-06-24 21:01:22 +0200 |
commit | 8ea1ee06e5ac18a000788851f807cb4fad3e076c (patch) | |
tree | d2c898ef3b1fc38a9d6bf1301ee74496fae37a9c /src | |
parent | 23c46c3f2bfa735d30e815b9ff45c8008adbcbc5 (diff) | |
download | weechat-8ea1ee06e5ac18a000788851f807cb4fad3e076c.zip |
irc: add support of TAGMSG messages (issue #1654)
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-protocol.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 2890496a7..53631e1b2 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -2904,6 +2904,22 @@ IRC_PROTOCOL_CALLBACK(setname) } /* + * Callback for the IRC message "SETNAME": set real name + * (with capability "setname"). + * + * Message looks like: + * @msgid=6gqz7dxd22v7r3x9pvukkp8nni;+tag1 :nick!user@host TAGMSG #channel + */ + +IRC_PROTOCOL_CALLBACK(tagmsg) +{ + IRC_PROTOCOL_MIN_ARGS(3); + + /* no action by default */ + return WEECHAT_RC_OK; +} + +/* * Callback for an IRC message with mode and reason (numeric). */ @@ -6669,6 +6685,7 @@ irc_protocol_recv_command (struct t_irc_server *server, IRCB(privmsg, 1, 1, privmsg), /* message received */ IRCB(quit, 1, 1, quit), /* close all connections and quit */ IRCB(setname, 0, 1, setname), /* set realname */ + IRCB(tagmsg, 0, 1, tagmsg), /* tag message */ IRCB(topic, 0, 1, topic), /* get/set channel topic */ IRCB(wallops, 1, 1, wallops), /* wallops */ IRCB(warn, 1, 0, warn), /* warning received from server */ |