aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Commands
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2014-10-28 20:57:18 +0100
committerjackpoz <giacomopoz@gmail.com>2014-10-28 20:57:18 +0100
commit248847290ae11478d51decdc605691311dc934c5 (patch)
tree59a92da650e2707ac19189fd5bc405e0cf365329 /src/server/scripts/Commands
parent9af10e6a9280ade4ea763efa37c3c1b2d36185d2 (diff)
parentd508472046f9c6f93a401c978d04cb5039f5a6d4 (diff)
Merge pull request #13440 from Rochet2/ahbot
Core/AH: AHBot related fixes
Diffstat (limited to 'src/server/scripts/Commands')
-rw-r--r--src/server/scripts/Commands/cs_ahbot.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/server/scripts/Commands/cs_ahbot.cpp b/src/server/scripts/Commands/cs_ahbot.cpp
index 04647d51ff0..772e1a69b21 100644
--- a/src/server/scripts/Commands/cs_ahbot.cpp
+++ b/src/server/scripts/Commands/cs_ahbot.cpp
@@ -146,11 +146,9 @@ public:
static bool HandleAHBotRebuildCommand(ChatHandler* /*handler*/, const char* args)
{
char* arg = strtok((char*)args, " ");
- if (!arg)
- return false;
bool all = false;
- if (strcmp(arg, "all") == 0)
+ if (arg && strcmp(arg, "all") == 0)
all = true;
sAuctionBot->Rebuild(all);