From 8df647d608cef7b1416fe9e07d69c889684ed717 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 5 Nov 2009 11:47:56 +0100 Subject: remote: use permit? instead of allow? We cannot signal back to the user from the UI anyway. --- lib/rbot/core/remote.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/core/remote.rb b/lib/rbot/core/remote.rb index 0cefae26..52de3f3f 100644 --- a/lib/rbot/core/remote.rb +++ b/lib/rbot/core/remote.rb @@ -172,7 +172,7 @@ class Bot auth = tmpl.options[:full_auth_path] debug "checking auth for #{auth}" # We check for private permission - if m.bot.auth.allow?(auth, m.source, '?') + if m.bot.auth.permit?(m.source, auth, '?') debug "template match found and auth'd: #{action.inspect} #{options.inspect}" return :return => botmodule.send(action, m, options) end -- cgit v1.2.3