We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d4e431 + b42caf3 commit 5a4a72cCopy full SHA for 5a4a72c
src/irc.coffee
@@ -206,6 +206,16 @@ class IrcBot extends Adapter
206
207
self.receive new TextMessage(user, message)
208
209
+ bot.addListener 'action', (from, to, message) ->
210
+ console.log " * From #{from} to #{to}: #{message}"
211
+ user = self.createUser to, from
212
+ if user.room
213
+ console.log "#{to} * #{from} #{message}"
214
+ else
215
+ console.log "msg <#{from}> #{message}"
216
+
217
+ self.receive new TextMessage(user, message)
218
219
bot.addListener 'error', (message) ->
220
console.error('ERROR: %s: %s', message.command, message.args.join(' '))
221
0 commit comments