mIRC Home    About    Download    Register    News    Help

Print Thread
#206270 10/11/08 08:00 PM
Joined: Oct 2005
Posts: 34
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Oct 2005
Posts: 34
suppose this is the nick "ASDADF123134123"
i just wanna get the nick as per my requirement like i wanna remove 5 character and set it. so it would be like "ASDADF1231"
so what would be the exact code to get this.
set %bla $remove or $gettok or $right please advice.

thanks

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
That would be

$left($nick,-5)

5618 #206273 10/11/08 10:01 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
If it's for a certain nick that you want to remove some strings from, you can use the $remove identifier:

Code:
//echo -a $remove(ASDADF123134123,34123)


Link Copied to Clipboard