Permalink
Browse files

Now setting mode correctly when no param found.

oferrigni & zarniwoop
  • Loading branch information...
1 parent 7ad2620 commit b8655a04eb8246bbe91cc21c2a82d24fe570031e Oliver Ferrigni committed Oct 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cinch/irc.rb
View
@@ -289,7 +289,7 @@ def on_mode(msg, events)
else
# channel options
if direction == :add
- msg.channel.modes_unsynced[mode] = param
+ msg.channel.modes_unsynced[mode] = param.nil? ? true : param
else
msg.channel.modes_unsynced.delete(mode)
end

0 comments on commit b8655a0

Please sign in to comment.