mode $chan +b $+(*!*@,$gettok($gettok($address($nick(#Channel,N),2),2,64),1,46),.*)
Broken down with an example.
We have the following mask: John!Doe@JD.users.gamesurge.net
$gettok($address($nick(#Channel,N),2),2,64)
This will grab the 2nd token in the address that is separated by an @ characters (ascii value 64).
The result is: JD.users.gamesurge.net
The outer $gettok then takes from the previous token, the 1st token that is separated by a . character (ascii value 46).
The result is: JD
$+() is then used to concatenate everything together. At the beginning it starts with *!*@, followed by the code obtaining the account, then .*
so if i wanted to ban $2 using /blacklist NICK i'd just do this,
$+(*!*@,$gettok($gettok($address($2,2),2,64),1,46),.*) ??? or what?
lol, u lost me when u did the example text,
i got it working for myself, but it doesnt work for $2
i did echo -a $+(*!*@,$gettok($gettok($address($me,2),2,64),1,46),.*) and it replied with *!*@OsTrailYa.*