So, I was making some simple aliases and ran into a silly bug when I forced someone to emote something for fun. Example:
with the following definition:
When the above Notes are uncommented, I get the following output when doing mcom test"ing:
So, why is it mutilating my wildcards and not the general line variable? I can easily take everything I need from line and forget about the wildcard, but it wouldn't solve the problem in other aliases I have (which I've also tested for this problem just now). A Lua plugin I made doesn't share this problem for as far I can tell.
Am I missing something obvious here?
<alias
match="^mcom (.*?)$"
enabled="y"
regexp="y"
send_to="12"
omit_from_output="y"
sequence="100"
script="MindCommand"
>
<send></send>
</alias>with the following definition:
def MindCommand(name, line, wildcs):
#world.Note("line: " + line)
#world.Note("[0]: " + wildcs[0])
# It seems Python changes a " to \" in the wildcards.
world.Send("mind command " + wildcs[0])
When the above Notes are uncommented, I get the following output when doing mcom test"ing:
line: mcom test"ing
[0]: test\"ing
mind command test\"ingSo, why is it mutilating my wildcards and not the general line variable? I can easily take everything I need from line and forget about the wildcard, but it wouldn't solve the problem in other aliases I have (which I've also tested for this problem just now). A Lua plugin I made doesn't share this problem for as far I can tell.
Am I missing something obvious here?