summaryrefslogtreecommitdiffstats
path: root/signet/ServerConnectionHandler.cpp
diff options
context:
space:
mode:
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);