mIRC Home    About    Download    Register    News    Help

Print Thread
need simple help #206270 10/11/08 08:00 PM
Joined: Oct 2005
Posts: 34
S
SLiprockS Offline OP
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

Re: need simple help [Re: SLiprockS] #206272 10/11/08 08:50 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
That would be

$left($nick,-5)

Re: need simple help [Re: 5618] #206273 10/11/08 10:01 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
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)