whisper

06/08/2010 23:48 .Summer#1
Okay i found out the reason why the client crash, when whisper in the 5165 source from tanel.
It crash, because the messages get overflowered, simply you write to fast or too much.
Fix:
I dont know :D

any idea? :D
06/09/2010 00:16 .Kob#2
Make any "If length of the message is superior to x", delete the rest of the message or send 2 whispers or just delete all the message and don't send anythink.
06/09/2010 00:31 .Summer#3
I think it should need a timer to check.
like only message every 2sec :D
or something.
so it wont get overflowed.
06/09/2010 00:40 Arcо#4
Then try giving it a timer check
06/09/2010 01:25 pro4never#5
if(DateTime.Now > GC.MyChar.LastWhisper.AddMilliseconds(GC.MyChar.Wh isperDelay))
send msg;
GC.MyChar.LastWhisper = DateTime.Now;
else
send packet to client saying they can't whisper again so soon.

Simple check to do.

Also do a length check something like

if (Message.Length < 100)
send msg
else
return msg to client saying it's too long (or do a split/cut it off...)