summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2015-03-09 09:17:48 +0100
committerMatthias H <apoc@sixserv.org>2015-03-09 09:17:48 +0100
commit68bf927fa4642cf76d696e20e69353c8722707f0 (patch)
treeb373fa380161d9e5d29d5d2eea0b040a2d1029b8 /lib
parent2f70ebb1c50fb8876745dd5ceefe272607cc9698 (diff)
webservice: fix cleanup typo
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/webservice.rb2
1 files changed, 1 insertions, 1 deletions
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