summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-06 11:42:55 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-06 11:42:55 +0000
commit31ee16be247226733ad3bef0dd2f0ba26823e448 (patch)
treeba3fc1743168b6f7652c16e3bb80350f7def9e14 /lib
parent644a476274a2cbd5c96d370dbadb159ad17b054f (diff)
When copying botusers, dup all the entries to prevent linked netmasks and such
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/auth.rb5
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