this alias will allow you to pass and return the address mask levels in sockread just like $address does
the basic levels are 0, returns whole string (without the :), 1 returns ident@whole.domain, 2 returns ident@*.domain, etc
basic usage could be
on :sockread:sock:{
sockread %sock1
tokenize 32 %sock1
if ($2 == PRIVMSG) {
if ($ident($1,2) == %addressmatchvariableorsomething) {
do some stuff here
}
}
alias ident {
if ($2 == 0) { return $remove($1,:) }
return $+(*,$gettok($gettok($1,2,33),1,64),@*.,$gettok($gettok($1,2,64),$2 -,46))
}