]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
remote: use permit? instead of allow?
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 5 Nov 2009 10:47:56 +0000 (11:47 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 5 Nov 2009 10:47:56 +0000 (11:47 +0100)
We cannot signal back to the user from the UI anyway.

lib/rbot/core/remote.rb

index 0cefae265a3c7dbba0b0e281d93531464790f5d8..52de3f3fe34644631789b97279b8264db355b6af 100644 (file)
@@ -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