initial commit of local server code

This commit is contained in:
Max-Wilhelm Bruker 2010-08-04 13:56:51 +02:00
parent cbfbc542e7
commit 7921b5f82d
35 changed files with 143 additions and 365 deletions

View file

@ -36,7 +36,9 @@ void Server_ChatChannel::say(Server_ProtocolHandler *client, const QString &s)
void Server_ChatChannel::sendChatEvent(ChatEvent *event)
{
bool mayDelete = true;
for (int i = 0; i < size(); ++i)
at(i)->sendProtocolItem(event, false);
delete event;
mayDelete = at(i)->sendProtocolItem(event, false);
if (mayDelete)
delete event;
}