diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-05 11:47:56 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-11-05 11:47:56 +0100 |
commit | 8df647d608cef7b1416fe9e07d69c889684ed717 (patch) | |
tree | 4550f4318179d2317e19c18a57bcfa4ed218110c | |
parent | 42fd85ebe21fd0fd38fa02a1acb70402187053a8 (diff) |
remote: use permit? instead of allow?
We cannot signal back to the user from the UI anyway.
-rw-r--r-- | lib/rbot/core/remote.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |