summaryrefslogtreecommitdiffstats
path: root/src/crsm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/crsm.cpp')
-rw-r--r--src/crsm.cpp60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/crsm.cpp b/src/crsm.cpp
index 5cddb73..e178504 100644
--- a/src/crsm.cpp
+++ b/src/crsm.cpp
@@ -106,57 +106,6 @@ bool CRSM::isOk()
return ok;
}
-ClientInfo* CRSM::parseClientInfo(QString& message)
-{
- if(message.length() > 5 && message.at(0) == '\\')
- {
- QString parts[3];
- for(int i = 1, part = 0; i < message.length() && part < 3; ++i)
- {
- bool last = (i == message.length() -1);
- QChar c = message.at(i);
- QChar next = '\0';
- if(!last)
- {
- next = message.at(i + 1);
- }
- if(c == '\\')
- {
- if((last || next == ' ') && part == 2)
- {
- message = message.mid(i + 2);
-
- if(parts[0] == Config.Auto.Volatile.Clonk.ServerPCName)
- {
- return &Session.Clonk.Server;
- }
-
- int CUID = parts[1].toInt();
- ClientInfo* ret = &getClientInfo(parts[0], CUID, parts[2]);
- return ret;
- }
- else
- {
- if(next == '\\' || next == '"')
- {
- i += 2;
- parts[part].append(next);
- }
- else
- {
- ++part;
- }
- }
- }
- else
- {
- parts[part].append(c);
- }
- }
- }
- return nullptr;
-}
-
QString CRSM::findClientByName(ClientInfo &info, const QString &name)
{
if(Session.Clonk.Clients.contains(name))
@@ -1969,15 +1918,6 @@ void CRSM::afkAdminTimeout()
Session.AfkAdmin = false;
}
-ClientInfo &CRSM::getClientInfo(const QString &pcName, int cuid, const QString &user)
-{
- if(!Session.Clonk.Clients.contains(pcName))
- {
- Session.Clonk.Clients.insert(pcName, ClientInfo::clonkClient(user, pcName, cuid));
- }
- return Session.Clonk.Clients[pcName];
-}
-
void CRSM::exit()
{
if(processManager != nullptr) processManager->closeProgFifos();