Skip to content
Snippets Groups Projects
Commit 009c8eab authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Fix triggers with defined channels

parent bfa7d3fe
No related branches found
No related tags found
No related merge requests found
......@@ -76,11 +76,11 @@ ExecuteTriggers = (message, room) ->
triggersToExecute = []
if triggers[room._id]?
triggersToExecute.push trigger for key, trigger of triggers[room._id]
if triggers['#'+room._id]?
triggersToExecute.push trigger for key, trigger of triggers['#'+room._id]
if triggers[room.name]?
triggersToExecute.push trigger for key, trigger of triggers[room.name]
if triggers['#'+room.name]?
triggersToExecute.push trigger for key, trigger of triggers['#'+room.name]
if triggers.__any?
triggersToExecute.push trigger for key, trigger of triggers.__any
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment