diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/rfc2812.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index bbc91bdf..fb70619c 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1331,7 +1331,7 @@ module Irc when RPL_WHOISCHANNELS @whois ||= Hash.new @whois[:nick] = argv[1] - @whois[:channels] = [] + @whois[:channels] ||= [] user = @server.user(@whois[:nick]) argv[-1].split.each do |prechan| pfx = prechan.scan(/[#{@server.supports[:prefix][:prefixes].join}]/) |