Difference between revisions of "%nicks hash"

From Botnix
Jump to: navigation, search
 
 
Line 1: Line 1:
 
== %nicks hash ==
 
== %nicks hash ==
  
This hash contains all the transient data on all
+
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
the users the bot can see, on all it's channels.
+
always stored in lower case.
$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_ops} - '''1 if user has ops on $channel'''

Latest revision as of 07:48, 9 October 2019

%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