More general private chat check
This commit is contained in:
parent
7d3e4d1eea
commit
f0e9a703ab
@ -29,7 +29,7 @@ module.exports = (robot) ->
|
|||||||
|
|
||||||
results = listeners()
|
results = listeners()
|
||||||
unless message.done or (results.reduce (x, y) -> x or y)
|
unless message.done or (results.reduce (x, y) -> x or y)
|
||||||
if message.room is 'Shell' or message.room.match /user#/
|
if message.room == message.user
|
||||||
message.text = robot.name + ' ' + message.text
|
message.text = robot.name + ' ' + message.text
|
||||||
results.push listeners()...
|
results.push listeners()...
|
||||||
if message not instanceof CatchAllMessage and (results.indexOf true) is -1
|
if message not instanceof CatchAllMessage and (results.indexOf true) is -1
|
||||||
|
Loading…
Reference in New Issue
Block a user