]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/webservice.rb
webservice: fix cleanup typo
[user/henk/code/ruby/rbot.git] / lib / rbot / core / webservice.rb
index c823594ad437fecc8473e29fd8b35118b625f984..0ddbc2d5941288ac1945de36c56f43d8ffcfb006 100644 (file)
@@ -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