aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts
diff options
context:
space:
mode:
authorRochet2 <tqbattlenet@gmail.com>2014-10-23 11:24:08 +0300
committerRochet2 <tqbattlenet@gmail.com>2014-10-25 11:33:03 +0300
commitd508472046f9c6f93a401c978d04cb5039f5a6d4 (patch)
tree393cf67e218ffd923480e9bfd742f1cbf9b8955e /src/server/scripts
parent805be8ebba07c3280089a128f1764d49f6f84ab6 (diff)
AHBot related fixes
Fix rebuild command requiring a dummy value Fix ahbot config to normal Fix sellprice setting in core. Closes #13425
Diffstat (limited to 'src/server/scripts')
-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);