]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
webservice: fix cleanup typo
authorMatthias H <apoc@sixserv.org>
Mon, 9 Mar 2015 08:17:48 +0000 (09:17 +0100)
committerMatthias H <apoc@sixserv.org>
Mon, 9 Mar 2015 08:17:48 +0000 (09:17 +0100)
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