We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5b5496 + 637effc commit 276f1dfCopy full SHA for 276f1df
src/irc.coffee
@@ -58,14 +58,16 @@ class IrcBot extends Adapter
58
@bot.join channel, () ->
59
console.log('joined %s', channel)
60
61
- self.receive new EnterMessage(null)
+ selfUser = self.getUserFromName self.robot.name
62
+ self.receive new EnterMessage(selfUser)
63
64
part: (channel) ->
65
self = @
66
@bot.part channel, () ->
67
console.log('left %s', channel)
68
- self.receive new LeaveMessage(null)
69
70
+ self.receive new LeaveMessage(selfUser)
71
72
getUserFromName: (name) ->
73
return @robot.brain.userForName(name) if @robot.brain?.userForName?
0 commit comments