| 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.
| 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
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