Class Irc::IrcAuth
In: lib/rbot/auth.rb
Parent: Object

User-level authentication to allow/disallow access to bot commands based on hostmask and userlevel.

Methods

allow?   help   identify   matchingUser   new   privmsg   save   setlevel   showdetails   showlevels   showusers   useradd   userdel   usermod  

Public Class methods

create a new IrcAuth instance.

bot:associated bot class

Public Instance methods

command:command user wishes to perform
mask:hostmask of user
tell:optional recipient for "insufficient auth" message

returns true if user with hostmask mask is permitted to perform command optionally pass tell as the target for the "insufficient auth" message, if the user is not authorised

module help

privmsg handler

save current users and levels to files. levels are written to #{botclass}/levels.rbot users are written to #{botclass}/users.yaml

command:command to adjust
level:new auth level for the command

set required auth level of command to level

return all currently defined commands (for which auth is required) and their required authlevels

return all currently defined users and their authlevels

add user with hostmask matching mask with initial auth level level

mask:mask of user to remove

remove user with mask mask

[Validate]