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
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: Tue Nov 28, 2006 1:50 am   

[1.17][Low Priority zMud feature port] Command line smilies
 
Just porting over the little feature in zMud that could tell the difference between the semicolon use in and parse correctly for:

Code:
ct player this is a test tell with a smilie at the end ;)


and

Code:
ct player this is a test tell with code afterwards;expcheck


Like I said in the title, low priority... just making sure it gets tossed into a list slot.

edit: by the way, it seems to only do this when ct is an alias.

Code:
#alias ct {tell %1 "%^BOLD%^%^BLACK%^.>%^WHITE%^" %-2 "%^BOLD%^%^BLACK%^<."}
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Nov 28, 2006 2:08 am   
 
Actually, CMUD already has smilely detection (which should be even better than zMUDs).

But yes, the problem is that it doesn't work with aliases. It only works with the command line. With an alias, you'll need to put the stuff in quotes or something. When using an alias, CMUD requires you to follow all the scripting syntax rules regarding special characters, etc.
Reply with quote
The Raven
Magician


Joined: 13 Oct 2000
Posts: 463

PostPosted: Tue Nov 28, 2006 5:26 pm   
 
Smiley detection isn't very important in aliases because you can always put ~;~) in an alias (the ~ tells CMUD to not treat the characters specially.) On the command line it would be a tremendous pain to do that all the time... in an alias you only have to do it once. And that way the code for parsing aliases never WRONGLY sees a smiley when there isn't one, and messes up someone's code when they really didn't mean to do a smiley.
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