Re: Targeting alias
Posted: Sat Jan 02, 2010 5:05 pm
Have you tried deleting the alias and creating it again? When I create an alias with the identical pattern "^z (.*)$", it works perfectly for me.
His xml has this though:Heiko wrote:^z (.*)$" *would* work nicely, *IF* he used that, but uses "^z (.*)$\s" which will never match in Mudlet.
That's why I told him to use the debug console in the future
Maybe \n got in there by accident and wasn't rendered?<Alias isActive="yes" isFolder="no">
<name>Target Get</name>
<script>burger = matches[2]</script>
<command></command>
<regex>^z (.*)$
</regex>
</Alias>
Code: Select all
rget Get(^z (.*)) matched.
Alias: capture group #1 = <z blah>
Alias: capture group #2 = <blah>
LUA: ERROR running script Target Get (Alias1) ERROR:Lua error:[string "function Alias1()..."]:2:
attempt to index global 'match' (a nil value)
Alias name=Bash(^x$) matched.
Alias: capture group #1 = <x>
LUA: ERROR running script Bash (Alias2) ERROR:Lua error:[string "function Alias2()..."]:2: attempt to concatenate global 'target' (a nil value)
Code: Select all
get Get(^z (.*)) matched.
Alias: capture group #1 = <z blah>
Alias: capture group #2 = <blah>
LUA: ERROR running script Target Get (Alias1) ERROR:Lua error:[string "function Alias1()..."]:2:
attempt to index global 'match' (a nil value)
Alias name=Bash(^x$) matched.
Alias: capture group #1 = <x>
LUA: ERROR running script Bash (Alias2) ERROR:Lua error:[string "function Alias2()..."]:2: attempt to concatenate global 'target' (a nil value)
Code: Select all
get Get(^z (.*)) matched.
Alias: capture group #1 = <z blah>
Alias: capture group #2 = <blah>
LUA: ERROR running script Target Get (Alias1) ERROR:Lua error:[string "function Alias1()..."]:2:
attempt to index global 'match' (a nil value)
Code: Select all
Alias: capture group #1 = <z blah>
Alias: capture group #2 = <blah>
Code: Select all
LUA: ERROR running script Target Get (Alias1) ERROR:Lua error:[string "function Alias1()..."]:2:
attempt to index global 'match' (a nil value
Code: Select all
attempt to index global 'match' (a nil value