From 1e044917307a90023f599bedf26c06770cd81c8e Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Tue, 30 May 2023 22:36:43 +0200 Subject: [PATCH 1/2] Add missing 'account' property on 'ctcp response' and 'tagmsg' --- src/commands/handlers/messaging.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands/handlers/messaging.js b/src/commands/handlers/messaging.js index f63132cc..afc967c9 100644 --- a/src/commands/handlers/messaging.js +++ b/src/commands/handlers/messaging.js @@ -23,6 +23,7 @@ const handlers = { type: (message.substring(1, message.length - 1).split(' ') || [null])[0], message: message.substring(1, message.length - 1), time: time, + account: command.getTag('account'), tags: command.tags }); } else { @@ -125,6 +126,7 @@ const handlers = { target: target, tags: command.tags, time: time, + account: command.getTag('account'), batch: command.batch }); }, From 15144f4eceab2798c2615bb681e955359e1a9c95 Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Thu, 8 Jun 2023 19:49:48 +0200 Subject: [PATCH 2/2] Document 'account' property on messaging events --- docs/events.md | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/docs/events.md b/docs/events.md index 9edbf8ce..ceebd271 100644 --- a/docs/events.md +++ b/docs/events.md @@ -355,7 +355,8 @@ sent from the server or a user. group: '@', message: 'A message to all channel ops', tags: [], - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -371,7 +372,8 @@ Also triggers a **message** event with .type = 'action' target: '#channel', message: 'slaps someuser around a bit with a large trout', tags: [], - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -387,7 +389,8 @@ Also triggers a **message** event with .type = 'privmsg' target: '#channel', message: 'Hello everybody', tags: [], - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -402,7 +405,8 @@ Also triggers a **message** event with .type = 'privmsg' tags: { example: 'hello' }, - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -414,7 +418,8 @@ Also triggers a **message** event with .type = 'privmsg' hostname: 'manchester.isp.net', target: 'someuser', message: 'VERSION kiwiirc', - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -431,7 +436,8 @@ The `VERSION` CTCP is handled internally and will not trigger this event, unless target: 'someuser', type: 'VERSION', message: 'VERSION and remaining text', - time: 000000000 + time: 000000000, + account: 'account_name' } ~~~ @@ -443,7 +449,8 @@ The `VERSION` CTCP is handled internally and will not trigger this event, unless nick: 'prawnsalad', ident: 'prawn', hostname: 'manchester.isp.net', - message: 'This is a server-wide message' + message: 'This is a server-wide message', + account: 'account_name' } ~~~