mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2003
Posts: 2
C
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Nov 2003
Posts: 2
Hello everyone,
I got the latest version 6.12 and as I know from my experience I shouldn't expect it to be more stable. Sorry...
I have my own script, which is 7 year old by now, and constantly improving.
So, back to the 6.12 topic. Sometimes I see stupid messages from server after a user changes their nick to nickname:
421 <nickname> Unknown command
I noticed this weird situation is when nickname contains "-".
The cause is that when I use nested [] brackets with address depth = 2 the mIRC 6.12 interpretator behaviour is quite strange:
%var. [ $+ [ $1. [ $+ [ $2 ] ] ] ] = ...
mad
What would you say ?

Peace smirk

Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I would say use this: %var. [ $+ [ $1 ] $+ [ $2 ] ]


-KingTomato
Joined: Nov 2003
Posts: 2
C
Bowl of petunias
OP Offline
Bowl of petunias
C
Joined: Nov 2003
Posts: 2
I think that's fine. Have to change it at all places and do some tests...

Thanks.

P.S. I remember this was the first way I wished to do that some years ago...

Joined: Feb 2003
Posts: 810
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Feb 2003
Posts: 810
The evaluation brackets behaviour has changed for some time ago (reported on versions.txt, I can't remember the version number though). It was that cluttered before the change, but it's been fine since then.
By the way, you have the $() (or $eval()) option too (would be $($+(%,var.,$1.,$2),2) in this case). I don't know if you're already aware of it; if not, be sure to check it.

Last edited by cold; 21/11/03 08:43 AM.

* cold edits his posts 24/7

Link Copied to Clipboard