Properly return command table every time it is called, rather then just the first time.

Fixes the issue with .command showing the wrong information.
Fixes issue 3459.

--HG--
branch : trunk
This commit is contained in:
enjoi
2010-08-18 04:50:22 +01:00
parent d6fe4b23e9
commit 774eb840e9
-2
View File
@@ -778,8 +778,6 @@ ChatCommand * ChatHandler::getCommandTable()
if (load_command_table) if (load_command_table)
{ {
load_command_table = false;
QueryResult_AutoPtr result = WorldDatabase.Query("SELECT name,security,help FROM command"); QueryResult_AutoPtr result = WorldDatabase.Query("SELECT name,security,help FROM command");
if (result) if (result)
{ {