it might help us help you more if you stated what was wrong with it. Also, $address($me,0) is the equivalent of saying *!user@host. From the $mask identifyer in the help file:
$mask(address,type)
Returns address with a mask specified by type.
$mask(nick!khaled@mirc.com,1) returns *!*khaled@mirc.com
$mask(nick!khaled@mirc.com,2) returns *!*@mirc.com
The available types are:
0: *!user@host
1: *!*user@host
2: *!*@host
3: *!*user@*.host
4: *!*@*.host
5: nick!user@host
6: nick!*user@host
7: nick!*@host
8: nick!*user@*.host
9: nick!*@*.host
You can also specify a type of 10 to 19 which correspond to masks 0 to 9, but instead of using a * wildcard to replace portions of the host, mIRC uses ? wildcards to replace the numbers in the address.
This standard set of masks is also used in other identifiers and commands.