diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-23 15:00:05 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-10-23 15:00:05 +0000 |
commit | e74280756864bd2122442f5876a6f752b65c202d (patch) | |
tree | 6cb9d9654d9f10ae8aaaf13a936317e75cb2c91e /lib | |
parent | 38dde2ea8379f1919e39a4b87c91faae4b068b66 (diff) |
Fix targmax/maxtargets handling
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/irc.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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) {
|