Bantam what is ur chatscript language ?
You mentioned vbulletin did the same , IF you are talking about the /me and /you and /meid etc commands , those were made for vbull in bbcode not in php specifically !
you said something like vbulletin has it, what is it exactly they has it ? the /me things ? or the vbirc your trying to imitate ?
You want a script to parse irc commands for your PHP chat client?
This is just a matter of deciding what commands you want to implement (if you want to implement all of them, then you'd have to read up on the irc specs to see what commands are available), and then write a regular expression to check for those commands in user input.
If you are just doing simple checks, then use the string functions (they are not as expensive as regular expression functions).
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise