Skip to content

Commit 5cf88ab

Browse files
committed
Pass reason to LeaveMessage.
1 parent 5677223 commit 5cf88ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/irc.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,14 @@ class IrcBot extends Adapter
300300
logger.info('%s has left %s: %s', who, channel, reason)
301301
user = self.createUser '', who
302302
user.room = channel
303-
self.receive new LeaveMessage(user)
303+
self.receive new LeaveMessage(user, reason)
304304

305305
bot.addListener 'quit', (who, reason, channels) ->
306306
logger.info '%s has quit: %s (%s)', who, channels, reason
307307
for ch in channels
308308
user = self.createUser '', who
309309
user.room = ch
310-
self.receive new LeaveMessage user
310+
self.receive new LeaveMessage(user, reason)
311311

312312
bot.addListener 'kick', (channel, who, _by, reason) ->
313313
logger.info('%s was kicked from %s by %s: %s', who, channel, _by, reason)

0 commit comments

Comments
 (0)