mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2005
Posts: 39
Hello,

/mode # +b $address($1,1)for a long host, f.ex me@hello.this.is.just.an.example.rofl.lollerskatez.com, doesnt seems to work, allthough it works for shorter vhosts..? How come?

Joined: Jul 2005
Posts: 37
G
Ameglian cow
Offline
Ameglian cow
G
Joined: Jul 2005
Posts: 37
thats strange not sure why it dont work for you but i just tested it out and it works fine for me
i just made my vhost long as i can
-HostServ- Error! The vhost is too long, please use a host shorter than 64 characters.
then i used $address with the max characters and it worked u must be using a realy long vhost for it to not work proper

are u using a older version of mirc if so that may be the prob

u can try using $ial(nick,1) see if that picks it all its in the full format tho nick!ident@host if that picks it up use $gettok()
so it will look like this $gettok($ial($1,1),2,64)

Last edited by gans; 24/08/07 11:42 PM.
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Perhaps that users address wasn't in your IAL yet, $address() requires the IAL entry for that nick.

You can also use this for the same result, mIRC will look the address up if it isn't in your IAL...
Code:
ban # $1 1


Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
$gettok($ial($1,1),2,64) = $ial($1).host wink

Joined: Mar 2005
Posts: 39
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Mar 2005
Posts: 39
Solved. It was because address wasnt in IAL. smile


Link Copied to Clipboard