X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=lib%2Frbot%2Fcore%2Fwebservice.rb;h=0ddbc2d5941288ac1945de36c56f43d8ffcfb006;hb=68bf927fa4642cf76d696e20e69353c8722707f0;hp=c823594ad437fecc8473e29fd8b35118b625f984;hpb=2f70ebb1c50fb8876745dd5ceefe272607cc9698;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/lib/rbot/core/webservice.rb b/lib/rbot/core/webservice.rb index c823594a..0ddbc2d5 100644 --- a/lib/rbot/core/webservice.rb +++ b/lib/rbot/core/webservice.rb @@ -217,7 +217,7 @@ class Bot tmpl = @templates[index] raise "Botmodule #{botmodule.name} tried to unmap #{tmpl.inspect} that was handled by #{tmpl.botmodule}" unless tmpl.botmodule == botmodule.name debug "Unmapping #{tmpl.inspect}" - @templates[handle] = nil + @templates[index] = nil @templates.clear unless @templates.compact.size > 0 end