CommandHelper

CommandHelper

46.5k Downloads

Bracket-notation array slicing doesn't play nice with parentheses. Or something.

LadyCailinBot opened this issue ยท 4 comments

commented

CMDHELPER-2714 - Reported by opoq

call_alias('/enc remove '.@Args[1..])

==>

15:21:49 [SEVERE] [CommandHelper][ERROR][COMPILER] COMPILE ERROR: Incorrect number of arguments passed to call_alias
:plugins/CommandHelper/config.txt:623

"Fixed" with:
@Args = @Args[1..]
call_alias('/enc remove '.@Args)

commented

Comment by LadyCailin

I traced it to the compiler itself, not the changes I made recently to arrays, so I'm going to postpone this bug until the new compiler, seeing as how the workaround is easy enough.

commented

Comment by LadyCailin

I opted to go ahead and fix this bug in the current compiler. It should be good to go!

commented

Comment by LadyCailin

Ok, fixing that broke 100 other things, so I'm reverting this change, which will re-break this.

commented

Comment by EntityReborn

For whatever reason, this seems to be fixed:

{{*:/test = >>>
@Args = array('one', 'two', 'three')
msg(@Args[1..])
<<<}}

results in:

{{{two, three}}}