aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-24 17:44:47 -0600
committermegamage <none@none>2009-03-24 17:44:47 -0600
commitf40773a24df8a000a757fa163cf33359eb67d835 (patch)
tree2cc38794831af171d9133efe9d46a2705d175298 /src
parente42e348d339fb9a629ea8c016b066c50df60c785 (diff)
[7537] Command .lookup player will report in case found accounts/ip but without existed characters. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Level2.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index a9c27a719e3..b8c861b697f 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -4240,6 +4240,13 @@ bool ChatHandler::LookupPlayerSearchCommand(QueryResult* result, int32 limit)
delete result;
+ if(i==0) // empty accounts only
+ {
+ PSendSysMessage(LANG_NO_PLAYERS_FOUND);
+ SetSentErrorMessage(true);
+ return false;
+ }
+
return true;
}