Skip to content

Commit eb59375

Browse files
authored
Merge pull request #263 from kiwiirc/time-invited
Add time to invited event and fix params order
2 parents 5fe1830 + af799fd commit eb59375

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/commands/handlers/channel.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,12 @@ const handlers = {
269269
},
270270

271271
RPL_INVITING: function(command, handler) {
272+
const time = command.getServerTime();
273+
272274
handler.emit('invited', {
273-
nick: command.params[0],
274-
channel: command.params[1],
275+
nick: command.params[1],
276+
channel: command.params[2],
277+
time: time,
275278
tags: command.tags
276279
});
277280
}

0 commit comments

Comments
 (0)