diff options
Diffstat (limited to 'src/server/worldserver/TCSoap')
| -rwxr-xr-x | src/server/worldserver/TCSoap/TCSoap.cpp | 12 |
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; |
