From 0acae04908d05fffdd333ed5bcd16d4e389d7863 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 6 Jan 2009 23:32:16 -0500 Subject: Krazy check fixes --- signet/ServerConnectionHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'signet/ServerConnectionHandler.cpp') diff --git a/signet/ServerConnectionHandler.cpp b/signet/ServerConnectionHandler.cpp index 940b3421..a05a9e52 100644 --- a/signet/ServerConnectionHandler.cpp +++ b/signet/ServerConnectionHandler.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2008 Ben Boeckel + * Copyright 2008-2009 Ben Boeckel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -43,7 +43,7 @@ void Signet::ServerConnectionHandler::run() { Protocol::Packet packet = Protocol::PacketMaker::unwrap(m_socket); const QString receiver = packet.received(); - if (receiver.startsWith("server-") && receiver.endsWith(m_server->m_name)) + if (receiver.startsWith(QString("server-")) && receiver.endsWith(m_server->m_name)) { switch (packet.type()) { @@ -120,7 +120,7 @@ void Signet::ServerConnectionHandler::run() } else { - if (receiver.startsWith("room-")) + if (receiver.startsWith(QString("room-"))) { const QString room = receiver.mid(receiver.indexOf('-') + 1); m_server->createRoom(room); -- cgit