summaryrefslogtreecommitdiffstats
path: root/signet/ServerConnectionHandler.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-01-06 23:32:16 -0500
committerBen Boeckel <MathStuf@gmail.com>2009-01-06 23:32:16 -0500
commit0acae04908d05fffdd333ed5bcd16d4e389d7863 (patch)
tree8351fe9cda74694d22a98826b57c5d8320d458ab /signet/ServerConnectionHandler.cpp
parentee514f8b7e609516a6d6528141260341880f8b5b (diff)
downloadsigen-0acae04908d05fffdd333ed5bcd16d4e389d7863.tar.gz
sigen-0acae04908d05fffdd333ed5bcd16d4e389d7863.tar.xz
sigen-0acae04908d05fffdd333ed5bcd16d4e389d7863.zip
Krazy check fixes
Diffstat (limited to 'signet/ServerConnectionHandler.cpp')
-rw-r--r--signet/ServerConnectionHandler.cpp6
1 files changed, 3 insertions, 3 deletions
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 <MathStuf@gmail.com>
+ * Copyright 2008-2009 Ben Boeckel <MathStuf@gmail.com>
*
* 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);