mIRC Homepage
Posted By: aZnLupin On Notice - 18/04/03 04:17 AM
Code:
-irc2.vncentral.com- *** Network-Global -- from irc3.vncentral.com : Failed OPER attempt by: Lamer (abc@111.222.333.444) using UID spoon [---]  


how can i ban that user like:
/gline *@111.222.333.444 86400 :Gline
Posted By: aZnLupin Re: On Notice - 18/04/03 08:06 AM
i meant /gline *@ $+ $12 86400 :Gline
but ... i cant remove (abc@) from (abc@111.222.333.444)
can you help me ?
Posted By: Nimue Re: On Notice - 18/04/03 08:17 AM
$left($gettok($12,2,64),-1)
Posted By: aZnLupin Re: On Notice - 18/04/03 09:23 AM
can you show me more help about $left($gettok($12,2,64),-1) ?
Posted By: KingTomato Re: On Notice - 18/04/03 02:47 PM
Well left gets N charactors starting from the left hand side. Ex: If you had the word "Hello" and type $left(hello, 2) it would return "He".

The gettok can be compared to a brick wall. The bricks are the things your looking for and the mortar is the token. If you had the string "a.b.c.d" and did $gettok(a.b.c.d, 2, 46) then you would get the letter b. its the second lerrer, (thus the 2) and the spacer is a period (characer 46).

If you need more help, the help index is always a great place to look. >:D
Posted By: Nimue Re: On Notice - 18/04/03 02:52 PM
$left([color:red]$gettok([color:green]$12,2,64)[/color],-1)[/color]
$gettok( [color:green](abc@111.222.333.444),2,@)[/color]
(abc@111.222.333.444)
Seperate the string "(abc@111.222.333.444)" into 'sections' divided by chr(64) - "@", results in "(abc" and "111.222.333.444)"
Now take the 2nd 'section' and the result to pass onto $left() is "111.222.333.444)"

"$left(111.222.333.444),-1)" simple means to 'grab' N amount of characters from the left.
In this case, grab all but 1 (-1), which strips the last char off, leaving
111.222.333.444
Posted By: aZnLupin Re: On Notice - 19/04/03 02:37 AM
thankssssssssssssssssssss
© mIRC Discussion Forums