%nicks hash

From Botnix
Revision as of 07:48, 9 October 2019 by Brain (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

%nicks hash

This hash contains all the transient data on all the users the bot can see, on all it's channels. $nref is a unique key constructured by concatenating the network name with the nickname, seperated by a comma, e.g: $nid = "ChatSpike,Brain"; Where channel names are used in the hash, They are always stored in lower case.

  • $main::nicks{$nref}{$channel}{has_ops} - 1 if user has ops on $channel
  • $main::nicks{$nref}{$channel}{has_halfops} - 1 if user has halfops on $channel
  • $main::nicks{$nref}{$channel}{has_voice} - 1 if user has voice on $channel
  • $main::nicks{$nref}{$channel}{has_founder} - 1 if user has founder on $channel
  • $main::nicks{$nref}{$channel}{has_protect} - 1 if user has protect on $channel
  • $main::nicks{$nref}{$channel}{flags} - space seperated list of flags user has on channel, after login
  • $main::nicks{$nref}{channels} - space seperated channel list
  • $main::nicks{$nref}{nick} - nickname
  • $main::nicks{$nref}{network} - network the user is on
  • $main::nicks{$nref}{host} - hostname
  • $main::nicks{$nref}{ident} - ident/username
  • $main::nicks{$nref}{login} - login handle if logged in, otherwise undef