# File lib/rbot/core/remote.rb, line 134 def unmap(botmodule, handle) tmpl = @templates[handle] 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.clear unless @templates.nitems > 0 end