aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/TCSoap
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2011-09-29 12:43:05 +0200
committerSpp <spp@jorge.gr>2011-09-29 12:43:05 +0200
commitb16d2245bbd374805d15cdca585e8b42bf139605 (patch)
treeb7b63c567112e1999a2566611363cf5e83adb1be /src/server/worldserver/TCSoap
parent8b820baa7324d41df264f48e344d62584bff70f8 (diff)
Cosmetic: Multiple cosmetic changes
- Added missing space to 'if', 'for', 'while' and 'switch' when it's followed by '(' - Added missing space after a comma and remove space before comma (with some exceptions) - Remove trailing spaces - Convert tab to spaces Note: Only affects files with extension "cpp" and "h" under /src/server
Diffstat (limited to 'src/server/worldserver/TCSoap')
-rwxr-xr-xsrc/server/worldserver/TCSoap/TCSoap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/server/worldserver/TCSoap/TCSoap.cpp b/src/server/worldserver/TCSoap/TCSoap.cpp
index 67c54e7e011..fa7c34cffbf 100755
--- a/src/server/worldserver/TCSoap/TCSoap.cpp
+++ b/src/server/worldserver/TCSoap/TCSoap.cpp
@@ -83,25 +83,25 @@ int ns1__executeCommand(soap* soap, char* command, char** result)
}
uint32 accountId = AccountMgr::GetId(soap->userid);
- if(!accountId)
+ if (!accountId)
{
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: Client used invalid username '%s'", soap->userid);
return 401;
}
- if(!AccountMgr::CheckPassword(accountId, soap->passwd))
+ if (!AccountMgr::CheckPassword(accountId, soap->passwd))
{
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: invalid password for account '%s'", soap->userid);
return 401;
}
- if(AccountMgr::GetSecurity(accountId) < SEC_ADMINISTRATOR)
+ if (AccountMgr::GetSecurity(accountId) < SEC_ADMINISTRATOR)
{
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: %s's gmlevel is too low", soap->userid);
return 403;
}
- if(!command || !*command)
+ if (!command || !*command)
return soap_sender_fault(soap, "Command mustn't be empty", "The supplied command was an empty string");
sLog->outDebug(LOG_FILTER_NETWORKIO, "TCSoap: got command '%s'", command);
@@ -117,7 +117,7 @@ int ns1__executeCommand(soap* soap, char* command, char** result)
// wait for callback to complete command
int acc = connection.pendingCommands.acquire();
- if(acc)
+ if (acc)
{
sLog->outError("TCSoap: Error while acquiring lock, acc = %i, errno = %u", acc, errno);
}
@@ -125,7 +125,7 @@ int ns1__executeCommand(soap* soap, char* command, char** result)
// alright, command finished
char* printBuffer = soap_strdup(soap, connection.m_printBuffer.c_str());
- if(connection.hasCommandSucceeded())
+ if (connection.hasCommandSucceeded())
{
*result = printBuffer;
return SOAP_OK;