%users hash

From Botnix
Jump to: navigation, search

%users hash

The %users hash contains the contents of the userfile. It is automatically written back to the userfile every minute or when the core makes a fundamental change such as adding or deleting a user or changing their password. An underscore in either the network or channel field of the FLAGS type indicates a 'global' privilage set. Modules may add keys to this hash, but they will not be written to the userfile unless the key (in place of DESC, PASS etc) is equal to the module's namespace name such as a::b::c. Channel names in this hash are always stored in lower case.

  • $main::users{$handle}{DESC} - Description
  • $main::users{$handle}{FLAGS}{$network}{$channel} - Flags list for $network/$channel
  • $main::users{$handle}{PASS} - Hashed password
  • $main::users{$handle}{HOST} - Host list