mIRC Home    About    Download    Register    News    Help

Print Thread
#198027 19/04/08 09:39 AM
Joined: Sep 2007
Posts: 109
K
kwell Offline OP
Vogon poet
OP Offline
Vogon poet
K
Joined: Sep 2007
Posts: 109
Could shorten this code?
Code:
echo -ti16 $chan $str($chr(160),$calc(10-$len($nick)))) < $+ $replace($nick($chan,$nick).pnick,~&,~,~@,~,~+,~,&@,&,&+,&,@+,@) $+ > $1- | halt

kwell #198031 19/04/08 11:52 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
I don't understand why you're forcing the nick to be indented, but aside from that, this worked for me
Code:
echo -ti16 # $str($chr(160),$calc(10-$len($nick))) $+(<,$left($remove($nick(#,$nick).pnick,$nick),1),$nick,>) $1- | halt

It's not much shorter, but it does account for any combinations that you currently have, as well as any other combinations that you're not checking for (eg: ~&@%+)


Link Copied to Clipboard