Skip to content

Commit

Permalink
Add ! to channel.match regex
Browse files Browse the repository at this point in the history
Hubot was able to join !-channels on ircnet, but couldn't respond
to any messages. This adds (escaped) ! to the regex.
  • Loading branch information
simobotswana committed Dec 1, 2015
1 parent 51d1f4b commit ee05591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class IrcBot extends Adapter
user = @getUserFromId from
user.name = from

if channel.match(/^[&#]/)
if channel.match(/^[&#\!]/)
user.room = channel
else
user.room = null
Expand Down

0 comments on commit ee05591

Please sign in to comment.