mIRC Home    About    Download    Register    News    Help

Print Thread
#167608 27/12/06 04:19 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I want to strip out the nick from this:

nick!~ident@host.com

can also look like:

nick!ident@host.com

the problem is that the nick can be from 1 to 20 in lenght, so $right(text,N)shouldent work, the N value are unknown for me.. and i grab the info i need with $3 ..


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
sparta #167613 27/12/06 05:04 PM
Joined: Oct 2003
Posts: 313
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 313
If it's already in the ial, then $ial().nick

else something like: $gettok(<addr>,1,$asc(!))


Sais
Sais #167614 27/12/06 05:16 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
$gettok($3,1,$asc(!)) worked as i wanted smile thnx


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard