Skip to content

Commit 787d256

Browse files
committed
Handing ISON replies
1 parent 247b277 commit 787d256

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

docs/events.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,14 @@ Also triggers a **message** event with .type = 'privmsg'
407407
~~~
408408

409409

410+
+**users online**
411+
~~~javascript
412+
{
413+
nicks: ['nick1', 'nick2', 'nick3'],
414+
}
415+
+~~~
416+
417+
410418

411419
**whois**
412420

src/commands/handlers/user.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ var handlers = {
6565
});
6666
},
6767

68+
RPL_ISON: function(command) {
69+
this.emit('users online', {
70+
nicks: (command.params[command.params.length - 1] || '').split(' '),
71+
});
72+
},
73+
6874

6975
ERR_NICKNAMEINUSE: function(command) {
7076
this.emit('nick in use', {

src/commands/numerics.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ module.exports = {
6565
'291': 'RPL_HELPOP',
6666
'292': 'RPL_HELPTLR',
6767
'301': 'RPL_AWAY',
68+
'303': 'RPL_ISON',
6869
'304': 'RPL_ZIPSTATS',
6970
'307': 'RPL_WHOISREGNICK',
7071
'310': 'RPL_WHOISHELPOP',

0 commit comments

Comments
 (0)