User-level authentication to allow/disallow access to bot commands based on
hostmask and userlevel.
save current users and levels to files. levels are written to
#{botclass}/levels.rbot users are written to #{botclass}/users.rbot
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
add user with hostmask matching mask with initial auth level
level
mask: | mask of user to remove
|
remove user with mask mask
command: | command to adjust
|
level: | new auth level for the command
|
set required auth level of command to level
specific users.
returns the authlevel of user with mask mask finds the matching
user which has the highest authlevel (so you can have a default level of 5
for *!*@*, and yet still give higher levels to
return all currently defined commands (for which auth is required) and
their required authlevels
return all currently defined users and their authlevels