Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Now setting mode correctly when no param found. #50

Merged
merged 1 commit into from

2 participants

Oliver Ferrigni Dominik Honnef
Oliver Ferrigni

Previously, modes for +i would not get set in the Channel due to the param being nil.

oferrigni & zarniwoop

Oliver Ferrigni Now setting mode correctly when no param found.
oferrigni & zarniwoop
b8655a0
Dominik Honnef dominikh merged commit b8655a0 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 11, 2011
  1. Now setting mode correctly when no param found.

    Oliver Ferrigni authored
    oferrigni & zarniwoop
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cinch/irc.rb
2  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
Something went wrong with that request. Please try again.