Showing revision 3can_do
can_do(%chan, $perm, $acc, %user)
>
- %chan
- hash with two keys
- AGENT - whether bot or $csnick
- CHAN - well, the name of the channel.
- $perm is a string. passed into the db in the chanperm and chanlvl tables
- $acc is the rsult of get_best_acc(%chan, %user), if known. can be undef()
- %user is optional, but only if $acc is defined.
- is a hash containing NICK, ID, and AGENT.
- These must be accessed using get_user_nick, get_user_id, and get_user_agent. don't access the hash directly, as they may be undefined!
Portions of wiki contributed by other users.
All other portions © SurrealChat.net 2003, 2004, 2005, 2006, 2007, 2008, 2009