|
cazador Apprentice
Joined: 08 Dec 2005 Posts: 108
|
Posted: Fri Aug 22, 2008 3:53 am
[2.36] Substitution substitutes twice. |
When I do a subsitution of {text} to <text> I get <text><text>
Code: |
<trigger priority="12570" id="1257">
<pattern>^~{text~}</pattern>
<value>#sub {}</value>
</trigger> |
I can do a #sh ~{text~} to cause the problem <text><text> |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Fri Aug 22, 2008 7:38 am |
That's because you aren't telling CMUD what to substitute. Technically speaking that trigger shouldn't even be working at all because all it will do is blank out the text. You must have another trigger somewhere that is duplicating the text.
This trigger should do what you want.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger priority="12570" copy="yes">
<pattern>^~{(text)~}</pattern>
<value>#sub {<%1>}</value>
</trigger>
</cmud> |
|
|
_________________ Asati di tempari! |
|
|
|
|
|