From: Gary K. <gr...@re...> - 2005-01-09 18:11:21
|
We need a better way to handle the info command. The way we're handling it now is um, fugly at best. I have a couple thoughts on the matter, but I'm interested in what you guys think we should do. For starters a giant if block, isn't very ideal. Also we're going to end up with a ton of duplicate code. One of the ideas I had was to move it to a stack based system. Where by we keep track of what commands we've sent that should be getting info commands. That also has problems though like when we sign on and get our buddy list, which spews out an info message for each buddy. My other idea is to setup some sort of rules system that will be a static array that we can just iterate through for each info message. This could be a little bit of a performance hit (although I doubt it), but if it makes the code cleaner, I'm all for it. Anyways, just let me know your thoughts, opinion, what have you.. --=20 Gary Kramlich <gr...@re...> |