mIRC Homepage
Posted By: Attila bug in 6.3 with . $+ command - 17/08/07 03:12 AM
alias teste {
. $+ me is testing
}

was working on 6.2, not working anymore, it doesn't do anything
Posted By: Collective Re: bug in 6.3 with . $+ command - 17/08/07 03:15 AM
Reproduced here, well spotted smile

$+(.,me) is a reasonable workaround.
Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:17 AM
don't work neither $+()
Posted By: Collective Re: bug in 6.3 with . $+ command - 17/08/07 03:21 AM
Code:
alias teste {
  $+(.,me) is testing
}

Works fine here, if I type /teste in a query window to myself I receive my message back. Remember the . prefix will hide the local output smile

Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:29 AM
ok in fact
my code looks like
Quote:

alias teste {
$+(.,$replace(hello,hello,/me)) is testing
}


in 6.3:
/ME Unknown command

in 6.2
* //me: not connected to server (line 2, script1.mrc)
Posted By: Collective Re: bug in 6.3 with . $+ command - 17/08/07 03:31 AM
Remove the /

The reason you get two different errors is that in one you're connected to a server and in the other you are not.
Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:33 AM
yeah i fixed it, thanx, but i had to change my code, too bad smirk
Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:33 AM
Originally Posted By: Collective
Remove the /

The reason you get two different errors is that in one you're connected to a server and in the other you are not.


yeah i know, the second error is normal, but not the first
Posted By: Collective Re: bug in 6.3 with . $+ command - 17/08/07 03:35 AM
If one is normal so is the other. In both cases "/me" is being taken as the command name, not just "me".

/ME Unknown command
* //me: not connected to server (line 2, script1.mrc)

Edit: May as well point out this bug is probably related to items 21/22 of the 6.3 versions.txt:
Originally Posted By: versions.txt
21.Fixed command prefix /!. parsing inconsistencies across routines.
22.Fixed "// echo hello" being parsed as "//echo hello". The parser now halts parsing of empty // commands.
Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:38 AM
Originally Posted By: Collective
If one is normal so is the other. In both cases "/me" is being taken as the command name, not just "me".

/ME Unknown command
* //me: not connected to server (line 2, script1.mrc)

no, wrong

i've connected my second mirc (6.2)
and he say
* /me: cannot use /me in this window

while 6.3 says
/ME Unknown command
Posted By: Collective Re: bug in 6.3 with . $+ command - 17/08/07 03:46 AM
That's because you've tested 6.2 with one script and 6.3 with another.
Code:
alias teste {
  $+(./me) is testing
}
Gives:
/ME Unknown command
* //me: not connected to server (line 2, script.ini)

In both 6.2 and 6.3.

It's worth pointing out that the following:
Code:
alias teste {
  ./me is testing
}
doesn't produce an error, which is a bit inconsistent.
Posted By: Attila Re: bug in 6.3 with . $+ command - 17/08/07 03:56 AM
Originally Posted By: Collective
That's because you've tested 6.2 with one script and 6.3 with another.
Code:
alias teste {
  $+(./me) is testing
}
Gives:
/ME Unknown command
* //me: not connected to server (line 2, script.ini)

In both 6.2 and 6.3.


ok, so there is a bug in both versions
in 6.2
Quote:

. $+ /me << works
$+(.,/me) << don't work
$+(.,me) << work


in 6.3
Quote:

. $+ /me << don't work
$+(.,/me) << don't work
$+(.,me) << work
Posted By: Khaled Re: bug in 6.3 with . $+ command - 05/09/07 12:49 PM
In mIRC 6.21 and earlier it was possible for the parser to treat / ! and . in different combinations and orders, with more than one of each being stripped out depending on the parsing order. This resulted in inconsistent behaviour.

In mIRC 6.3 the behaviour that you see is by design. Prefix parsing is now strictly handled across all routines in the order /!. to ensure consistent behaviour.
Posted By: Attila Re: bug in 6.3 with . $+ command - 05/09/07 02:02 PM
thanx smile
© mIRC Discussion Forums