From 3ed665dddcd1bdeda85acc1161cd4c8d25aaf426 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 7 Dec 2007 22:59:34 +0000 Subject: maskdb: dup strings for manipulation --- lib/rbot/maskdb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rbot/maskdb.rb b/lib/rbot/maskdb.rb index f15a442c..435693ec 100644 --- a/lib/rbot/maskdb.rb +++ b/lib/rbot/maskdb.rb @@ -11,7 +11,7 @@ module Irc def add(val, *prefs) str = prefs.shift or raise 'empty prefs' - @pre = str if @chi.empty? + @pre = str.dup if @chi.empty? n = 0 @pre.size.times do -- cgit v1.2.3