diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-06 11:42:55 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-08-06 11:42:55 +0000 |
commit | 31ee16be247226733ad3bef0dd2f0ba26823e448 (patch) | |
tree | ba3fc1743168b6f7652c16e3bb80350f7def9e14 | |
parent | 644a476274a2cbd5c96d370dbadb159ad17b054f (diff) |
When copying botusers, dup all the entries to prevent linked netmasks and such
-rw-r--r-- | lib/rbot/core/auth.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbot/core/auth.rb b/lib/rbot/core/auth.rb index 81b5d694..5902056e 100644 --- a/lib/rbot/core/auth.rb +++ b/lib/rbot/core/auth.rb @@ -495,7 +495,10 @@ class AuthModule < CoreBotModule copying = m.message.split[1] == "copy"
begin
if copying
- h = buser_hash[source].dup
+ h = {}
+ buser_hash[source].each { |k, val|
+ h[k] = val.dup
+ }
else
h = buser_hash[source]
end
|