mIRC Home    About    Download    Register    News    Help

Print Thread
#19901 18/04/03 04:17 AM
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
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

#19902 18/04/03 08:06 AM
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
i meant /gline *@ $+ $12 86400 :Gline
but ... i cant remove (abc@) from (abc@111.222.333.444)
can you help me ?

Last edited by aZnLupin; 18/04/03 08:10 AM.
#19903 18/04/03 08:17 AM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$left($gettok($12,2,64),-1)

#19904 18/04/03 09:23 AM
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
can you show me more help about $left($gettok($12,2,64),-1) ?

#19905 18/04/03 02:47 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
#19906 18/04/03 02:52 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$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

#19907 19/04/03 02:37 AM
Joined: Dec 2002
Posts: 76
A
Babel fish
OP Offline
Babel fish
A
Joined: Dec 2002
Posts: 76
thankssssssssssssssssssss


Link Copied to Clipboard