Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
frasten
Beginner


Joined: 06 Jan 2006
Posts: 24

PostPosted: Tue Jan 08, 2008 6:59 pm   

[2.18] Alias and smileys
 
If I create an empty alias:

Code:
#alias say {}


and if I try to launch with smileys:
Code:
say :(


I receive an error: Error parsing command: illegal token: (

Note: the same error if I disable that alias (maybe this check comes before the 'enabled' check?)

What can I do? I really need to use smileys following my aliases...
Otherwise I could create a trigger on my input:

pattern: ^say (.*)$
type: Command Input

but this is just a workaround...
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jan 08, 2008 7:06 pm   
 
Illegal token is a general catchall error. In this case, CMUD is complaining about the symbols in the smiley, which look like part of window syntax and the start of an expression. CMUD includes some code to handle this on the command line, but I guess that doesn't apply when the parameters are passed to an alias. Perhaps the smiley-detection code could be improved to include that?

Regardless, whenever you use symbols on the command line you must either escape them by putting ~ before them or my placing the whole string in "quotes". The smiley detection's the only exception to this.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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