From e74280756864bd2122442f5876a6f752b65c202d Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 23 Oct 2006 15:00:05 +0000 Subject: Fix targmax/maxtargets handling --- lib/rbot/irc.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/rbot/irc.rb b/lib/rbot/irc.rb index 8ef55712..f2425d6a 100644 --- a/lib/rbot/irc.rb +++ b/lib/rbot/irc.rb @@ -1294,7 +1294,7 @@ module Irc groups = val.split(',') groups.each { |g| k, v = g.split(':') - @supports[key][k] = v.to_i + @supports[key][k] = v.to_i || 0 } } when :chanmodes @@ -1325,8 +1325,8 @@ module Irc } when :maxtargets noval_warn(key, val) { - @supports[key]['PRIVMSG'] = val.to_i - @supports[key]['NOTICE'] = val.to_i + @supports[:targmax]['PRIVMSG'] = val.to_i + @supports[:targmax]['NOTICE'] = val.to_i } when :network noval_warn(key, val) { -- cgit v1.2.3