Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TAGMSG as a message type #144

Open
vith opened this issue Apr 19, 2018 · 0 comments
Open

Support TAGMSG as a message type #144

vith opened this issue Apr 19, 2018 · 0 comments

Comments

@vith
Copy link
Contributor

vith commented Apr 19, 2018

Currently TAGMSG commands are not emitted through the 'message' event and do not get a .reply() method added to the event object.

irc-framework/src/client.js

Lines 177 to 188 in 759a85e

if (['privmsg', 'notice', 'action'].indexOf(event_name) > -1) {
event_arg.reply = function(message) {
var dest = event_arg.target === client.user.nick ?
event_arg.nick :
event_arg.target;
client.say(dest, message);
};
// These events with .reply() function are all messages. Emit it separately
// TODO: Should this consider a notice a message?
client.command_handler.emit('message', _.extend({type: event_name}, event_arg));

https://ircv3.net/specs/core/message-tags-3.3.html#the-tagmsg-tag-only-message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant