On single mode
From Botnix
on_single_mode
Called for every single binary mode change, for example if the mode line "MODE #chan +oo-o n1 n2 n3" occurs, this will be called three times in succession:
- $direction=1, $target='#chan', $mode='o', $modeparam='n1'
- $direction=1, $target='#chan', $mode='o', $modeparam='n2'
- $direction=0, $target='#chan', $mode='o', $modeparam='n3'
Parameters:
- $self - Module name
- $nid - Network name where this event occured (case sensitive)
- $server - Servername of user
- $nick - User's nickname
- $ident - User's ident (username)
- $host - User's hostname
- $mode - Mode character
- $direction - Direction of mode, 1 if adding 0 if removing
- $target - Target of mode, may be a channel or the bot's nick on this network
- $modeparam - Mode parameter if the mode has a parameter, e.g. a ban mask or user to op

