Raised This Month: $ Target: $400
 0% 

Get the Content of a Chat Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-09-2009 , 15:47   Re: Get the Content of a Chat Message
Reply With Quote #5

If you're going for ultramax efficiency, you may want to add a secondary handle_say type function to implement string slicing, that way you can hack off the "say " part of the said[] string. If you have a huge list of bad words to check against, I can imagine it would be checking those first four irrelevant cells countless times.

...or "say_team" for the say_team one.

Also, not sure there's a reason to use a charsmax function when you just defined how large the array was and could easily type it in...
__________________

Last edited by Bad_Bud; 01-09-2009 at 15:51.
Bad_Bud is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode