From 31ee16be247226733ad3bef0dd2f0ba26823e448 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 6 Aug 2006 11:42:55 +0000 Subject: [PATCH] When copying botusers, dup all the entries to prevent linked netmasks and such --- lib/rbot/core/auth.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5