Core/Utilities: Do not expose internal store structure in Tokens and rename it to Tokenizer
This commit is contained in:
1 parent
d44ec4b7da
commit
f8846cdeaf
21 files changed
+187
-269
No files matched your search
@@ -39,12 +39,12 @@ public:
|
||||
{ "complete", SEC_ADMINISTRATOR, false, &HandleQuestComplete, "", NULL },
|
||||
{ "remove", SEC_ADMINISTRATOR, false, &HandleQuestRemove, "", NULL },
|
||||
{ "reward", SEC_ADMINISTRATOR, false, &HandleQuestReward, "", NULL },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
static ChatCommand commandTable[] =
|
||||
{
|
||||
{ "quest", SEC_ADMINISTRATOR, false, NULL, "", questCommandTable },
|
||||
{ NULL, 0, false, NULL, "", NULL }
|
||||
{ NULL, SEC_PLAYER, false, NULL, "", NULL }
|
||||
};
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
@@ -408,9 +408,9 @@ public:
|
||||
if (!*args)
|
||||
return false;
|
||||
|
||||
Tokens entries(std::string(args), ' ');
|
||||
Tokenizer entries(std::string(args), ' ');
|
||||
|
||||
for (Tokens::const_iterator itr = entries.begin(); itr != entries.end(); ++itr)
|
||||
for (Tokenizer::const_iterator itr = entries.begin(); itr != entries.end(); ++itr)
|
||||
{
|
||||
uint32 entry = uint32(atoi(*itr));
|
||||
|
||||
|
||||
Reference in new issue
Block a user