From: Giuseppe Bilotta Date: Mon, 23 Oct 2006 15:00:05 +0000 (+0000) Subject: Fix targmax/maxtargets handling X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=e74280756864bd2122442f5876a6f752b65c202d;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git Fix targmax/maxtargets handling --- 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) {