I don't handle quotes (I use the 'say' command for that sort of stuff), but it would be fairly straightforward to do so - just don't do any substitutions when between quotes (i.e., toggle substition on and off each time you encounter a quote).
If you're differentiating between single and double quotes then you can handle them separately without a problem. However it becomes ambigious if you want to use recursive quotes of the same type, because this is a quote within a quote:
emote @man peers at you and ponders, "Did you really just say "you stink" to the king?"
While this is two separate quotes:
emote @man peers at you and ponders, "Did you really just say to the king?". He scratches his beard and continues, "The king won't be happy if he finds out."
And it's going to be difficult for the mud to work out which is which unless you can be sure that the players will follow a specific syntax (such as placing a comma before a new quote).
|