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
Zzzer
Newbie


Joined: 04 Nov 2006
Posts: 3

PostPosted: Wed May 30, 2007 2:35 pm   

Pattern matching
 
The following trigger used to work in Zmud but not working in Cmud
#trig {{~<|~{|~[}chat{~>|~}|~]}:} {#cap chat}
I did some testing and it would seem that the ~{ and ~} is whats causing the trigger not to fire. The trigger fires if the pattern is changed {~<|~[}chat{~>|~]}:

(This is not a big problem since it's much easier to use just (%p) on both sides)
Reply with quote
Tech
GURU


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

PostPosted: Wed May 30, 2007 6:36 pm   [1.33] Parsing Bug in pattern matching
 
Confirmed. There's a definite parsing bug here. Oddly enough, if you do the ~} and ~{ by themselves or have the be last in their respective lists then "{chat}: xxxx" will match.

As a workaround try pulling them into two triggers like so.

Code:
#trig {{~<|~[}chat{~>|~]}:} {#cap chat}
#trig {{~{}chat{~}}:} {#cap chat}
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Thu May 31, 2007 5:24 pm   
 
Added to 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