Skip to content

Commit 4046fa4

Browse files
committed
Merge pull request nandub#123 from take-cheeze/leave_msg_fix
Don't enable done flag with text.
2 parents 2b6177c + c4624a0 commit 4046fa4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/irc.coffee

+6-2
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,18 @@ 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, reason)
303+
msg = new LeaveMessage user
304+
msg.text = reason
305+
self.receive msg
304306

305307
bot.addListener 'quit', (who, reason, channels) ->
306308
logger.info '%s has quit: %s (%s)', who, channels, reason
307309
for ch in channels
308310
user = self.createUser '', who
309311
user.room = ch
310-
self.receive new LeaveMessage(user, reason)
312+
msg = new LeaveMessage user
313+
msg.text = reason
314+
self.receive msg
311315

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

0 commit comments

Comments
 (0)