Skip to content

Commit

Permalink
Merge pull request #360 from progval/account
Browse files Browse the repository at this point in the history
Add missing 'account' property on 'ctcp response' and 'tagmsg'
  • Loading branch information
MaxLeiter authored Jun 9, 2023
2 parents 8098298 + 15144f4 commit a609363
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
21 changes: 14 additions & 7 deletions docs/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
~~~

Expand All @@ -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'
}
~~~

Expand All @@ -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'
}
~~~

Expand All @@ -402,7 +405,8 @@ Also triggers a **message** event with .type = 'privmsg'
tags: {
example: 'hello'
},
time: 000000000
time: 000000000,
account: 'account_name'
}
~~~

Expand All @@ -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'
}
~~~

Expand All @@ -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'
}
~~~

Expand All @@ -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'
}
~~~

Expand Down
2 changes: 2 additions & 0 deletions src/commands/handlers/messaging.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -125,6 +126,7 @@ const handlers = {
target: target,
tags: command.tags,
time: time,
account: command.getTag('account'),
batch: command.batch
});
},
Expand Down

0 comments on commit a609363

Please sign in to comment.