diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-07 22:59:34 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-12-07 22:59:34 +0000 |
commit | 3ed665dddcd1bdeda85acc1161cd4c8d25aaf426 (patch) | |
tree | 3aa8e49cf869fc9c8392c12e00b0923f56453184 /lib | |
parent | 182684fd50dee1c92dba6654811980637f6e8dde (diff) |
maskdb: dup strings for manipulation
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/maskdb.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |