@@ -182,6+193,11 @@ class AuthModule < CoreBotModule
"welcome, #{get_botusername_for(user)}"\r
end\r
\r
"welcome, #{get_botusername_for(user)}"\r
end\r
\r
+ def auth_auth(m, params)\r
+ params[:botuser] = 'owner'\r
+ auth_login(m,params)\r
+ end\r
+\r
def auth_login(m, params)\r
begin\r
case @bot.auth.login(m.source, params[:botuser], params[:password])\r
def auth_login(m, params)\r
begin\r
case @bot.auth.login(m.source, params[:botuser], params[:password])\r
@@ -231,8+247,12 @@ class AuthModule < CoreBotModule
case topic\r
when "syntax"\r
return "a permission is specified as module::path::to::cmd; when you want to enable it, prefix it with +; when you want to disable it, prefix it with -; when using the +reset+ command, do not use any prefix"\r
case topic\r
when "syntax"\r
return "a permission is specified as module::path::to::cmd; when you want to enable it, prefix it with +; when you want to disable it, prefix it with -; when using the +reset+ command, do not use any prefix"\r
+ when "set", "reset", "[re]set", "(re)set"\r
+ return "permissions [re]set <permission> [in <channel>] for <user>: sets or resets the permissions for botuser <user> in channel <channel> (use ? to change the permissions for private addressing)"\r
+ when "view"\r
+ return "permissions view [for <user>]: display the permissions for user <user>"\r
else\r
else\r
- return "permissions (re)set <permission> [in <channel>] for <user>: sets or resets the permissions for botuser <user> in channel <channel> (use ? to change the permissions for private addressing)"\r
+ return "topics: syntax, (re)set, view"\r
end\r
when "user"\r
case topic\r
end\r
when "user"\r
case topic\r
@@ -258,7+278,7 @@ class AuthModule < CoreBotModule