mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Hi i need to know how to do this
ok i use this to set the nick
raw 320:*:{
set %peep $gettok($4 nick!nick@address,1,33)
}
what i would like to do is set the first 2 or 3 letters or number of the nick
raw 313:*:{
set %peepo $gettok($2 ,1,33)
}
problem is i keep getting the whole nick, any help appreciated

Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
I'm not familiar with the actual raw data given back, (or the usefullness of what you want) but if you have the nick you can just use
$left(thenickyouwant,3)

Since you use $gettok to get the first part of a complete nick!user@host you can keep using that
$left($gettok($2,1,33),3)
This will give you the 3 first characters of his nick, or all of it if it's shorter than 3 characters smile


btw: $gettok($4 nick!nick@address,1,33)
this doen't make a lot of sense to me, you probably made an error here?

Joined: Dec 2002
Posts: 79
F
Fantas Offline OP
Babel fish
OP Offline
Babel fish
F
Joined: Dec 2002
Posts: 79
Thanks Kelder that worked. I might have messed up but it works. It sets the nick in a raw 320


Link Copied to Clipboard