Bidmaron
December 27th, 2010, 17:19
1) slash commands can only be typed in the chat entry line, not injected programmatically using deliverMessage, right?
2) if I want to intercept chat messages to implement a messaging system between code on host and clients, if I use the onReceiveMessage event, I presume that my code would be called after the chatmanager stuff. That is, chatmanager would siphon off any slash commands before I get a chance to see the message (this is what I want, actually). Of course, if I didn't I could patch out the chatmanager code, but I am content with seeing the data after chatmanager. Thus, in my code, if I determined that the message is something I want to act upon (e.g. a 'backslash' command handler), I could use the data and return false to prevent the data from showing up in the chat window.
2) if I want to intercept chat messages to implement a messaging system between code on host and clients, if I use the onReceiveMessage event, I presume that my code would be called after the chatmanager stuff. That is, chatmanager would siphon off any slash commands before I get a chance to see the message (this is what I want, actually). Of course, if I didn't I could patch out the chatmanager code, but I am content with seeing the data after chatmanager. Thus, in my code, if I determined that the message is something I want to act upon (e.g. a 'backslash' command handler), I could use the data and return false to prevent the data from showing up in the chat window.