About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Mar 15, 2008 3:01 pm   

[2.20] Trigger firing when it shouldn't
 
I found this during testing of the pattern compilation error message box. This trigger pattern also has an error which can be verified with the trigger test tab, but it fires.

1. Launch CMud
2. Close Sessions Window (ESC)
3. Enter at the command line
Code:
#REGEX {*} {a}

4. Hit CTRL-Q
You will see the a inbetween each line
5. Open Package Editor (CTRL-G)
6. Go to the Test Pattern tab for the trigger in the PE and click the Test Trigger button
You will see it gives the 'nothing to repeat at position 0' error correctly.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Sat Mar 15, 2008 7:23 pm   
 
Confirmed.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Mar 17, 2008 5:23 pm   
 
Heh, this is a very interesting bug. From what I have found, if a CMUD Trigger pattern cannot be compiled into an expression, then CMUD just returns the raw string value as the pattern. The new error checking for Regular Expressions caused the error in compiling the pattern as you saw in the Test Trigger tab. So, because it got a compile error, the routine to create the trigger pattern was just returning "*" as the pattern. But this is a valid CMUD Trigger! CMUD was taking the bad result and then executing it as a normal CMUD Trigger.

Anyway, I've added this to the bug list.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net