 |
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Sat Jan 15, 2011 11:40 pm
[3.33a] #gag in alais actually does a #gag and #gag -1[Solved] |
Here is a little something I stumbled across this evening. Open the untitled session and throw a few lines of spam on your screen. Anything will do you just need to have a few lines of text there.
The command input trigger below works fine. Type test on the command line and you never see it show on screen because it gets gagged properly. All the other text remains where it should.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger type="Command Input" priority="10" copy="yes">
<pattern>^test$</pattern>
<value>#gag
</value>
</trigger>
</cmud> |
Now here is an alias that should do the same thing. But there's a catch if you type test with the trigger disabled and the alias enabled, test won't show when you enter it on the command line but also the previous line will get gagged too.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<alias name="test" copy="yes">
<value>#gag</value>
</alias>
</cmud> |
Shouldn't the alias be functioning just like the command input trigger? |
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Last edited by Fizgar on Sun Jan 16, 2011 8:44 pm; edited 1 time in total |
|
|
 |
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Sun Jan 16, 2011 8:20 pm |
Actually, that is working exactly as I would expect it to. When #GAG is called from a trigger, I would expect it to hide the text that fired the trigger, because that is the last line displayed. When executed as an alias, I would expect #GAG to hide the last line displayed before the alias was executed. The reason "test" does not show on the display is because the alias has no text output. Any other alias that does not have text output would also not show on the display.
|
|
|
 |
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Sun Jan 16, 2011 8:44 pm |
That's a good point. I'm not sure where I got the idea, that aliases showed the text that one would entered to execute the alias. That's something I've never really paid attention to I guess. Combine that with the feeling of having a cool new baby around and I guess you get a useless post. Been making goofs like this everywhere I go for the past week or so lol.
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
 |
|
|