We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1ee96d commit 88a44a3Copy full SHA for 88a44a3
src/irc.coffee
@@ -71,7 +71,7 @@ class IrcBot extends Adapter
71
72
bot.addListener 'message', (from, to, message) ->
73
console.log "From #{from} to #{to}: #{message}"
74
-
+
75
user = self.userForName from
76
unless user?
77
id = (new Date().getTime() / 1000).toString().replace('.','')
@@ -83,6 +83,8 @@ class IrcBot extends Adapter
83
console.log "#{to} <#{from}> #{message}"
84
else
85
user.room = null
86
+ unless message.indexOf(to) == 0
87
+ message = "#{to}: #{message}"
88
console.log "msg <#{from}> #{message}"
89
90
self.receive new Robot.TextMessage(user, message)
0 commit comments