|
slicertool Magician
Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: 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%^<."} |
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
The Raven Magician
Joined: 13 Oct 2000 Posts: 463
|
Posted: 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.
|
|
|
|
|
|