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 .*
Last edited by schaefer31; 22/06/06 02:46 AM.