mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 119
A
AKO Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2003
Posts: 119
Even with what one would assume would be the correct way to handle this, it doesn't seem to function.

$identifier(test,test) is fine, but if you wanted to pass a comma in $2-, it treats everything after the comma as $3-.

I propose changing this, so if you put quotations around $2-, it will treat the whole instance as a string and *NOT* $3-.

Therefore:

$identifier(test,"test1, test2") would return:
$1 = test
$2- = test1, test2

Joined: Oct 2003
Posts: 42
V
Ameglian cow
Offline
Ameglian cow
V
Joined: Oct 2003
Posts: 42
You can use $chr(44) to create comma. smile

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quote:
I propose changing this, so if you put quotations around $2-, it will treat the whole instance as a string and *NOT* $3-.

That would just shift the issue so that anyone wanting to use double-quotes in two separate parameters cannot. Just use $chr(44) as Voice_of_Power said or assign the content to a variable first and then use it.
ie.
var %somevar = test1, test2
$identifier(test, %somevar)


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard