diff options
Diffstat (limited to 'lib/rbot/rfc2812.rb')
-rw-r--r-- | lib/rbot/rfc2812.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index 9de781a8..d4f1e466 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1178,8 +1178,7 @@ module Irc chan.add_user(u, :silent => true) debug "Adding user #{u}" if ar[1] - m = @server.supports[:prefix][:prefixes].index(ar[1].to_sym) - ms = @server.supports[:prefix][:modes][m] + ms = @server.mode_for_prefix(ar[1].to_sym) debug "\twith mode #{ar[1]} (#{ms})" chan.mode[ms].set(u) end |