From 68bf927fa4642cf76d696e20e69353c8722707f0 Mon Sep 17 00:00:00 2001 From: Matthias H Date: Mon, 9 Mar 2015 09:17:48 +0100 Subject: [PATCH] webservice: fix cleanup typo --- lib/rbot/core/webservice.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2