|  | 
	
	
		| frasten Beginner
 
 
 Joined: 06 Jan 2006
 Posts: 24
 
 
 | 
			
			  |  Posted: Tue Jan 08, 2008 6:59 pm 
 [2.18] Alias and smileys
 
 |  
				| If I create an empty alias: 
 
 
 and if I try to launch with smileys:
 
 
 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...
 |  | 
	
	  |  | 
	
		|  | 
	
		| Fang Xianfu GURU
 
  
 Joined: 26 Jan 2004
 Posts: 5155
 Location: United Kingdom
 
 | 
			
			  |  Posted: 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.
 |  | 
	
	  |  | 
	
		|  | 
	
		|  | 
	
		|  |