I have a plugin that handles a bunch of say commands. One of these commands requires reading the entire say string. My question is, is it best to look for the designated commands within the say handler, or to register all say commands before the one that reads the entire string?
Code:
register_clcmd("say /pm", "cmdPMmenu")
register_clcmd("say /block", "cmdBlock", 0, "/block <nick>")
register_clcmd("say /pageadmin", "pageAdmin", 0, "Pages all admins")
register_clcmd("say", "cmdPM", 0, "Private Message: !<nick> <message>")
The way i figure it is that it'll be faster for the VM to grab the commands right out of the chat box and then forward it directly to the command function, rather than my code looking through it each time. What say you, AM?
__________________