mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Hotfix] Fix ClientList Singleton Shortcomings of #4942
This commit is contained in:
+2
-4
@@ -33,8 +33,6 @@
|
||||
#include "../common/zone_store.h"
|
||||
#include <fmt/format.h>
|
||||
|
||||
extern ClientList client_list;
|
||||
|
||||
/**
|
||||
* @param username
|
||||
* @param password
|
||||
@@ -191,7 +189,7 @@ void ConsoleWho(
|
||||
}
|
||||
|
||||
WorldConsoleTCPConnection console_connection(connection);
|
||||
client_list.ConsoleSendWhoAll(0, connection->Admin(), &whom, &console_connection);
|
||||
ClientList::Instance()->ConsoleSendWhoAll(0, connection->Admin(), &whom, &console_connection);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -876,7 +874,7 @@ void ConsoleIpLookup(
|
||||
{
|
||||
if (!args.empty()) {
|
||||
WorldConsoleTCPConnection console_connection(connection);
|
||||
client_list.SendCLEList(connection->Admin(), nullptr, &console_connection, args[0].c_str());
|
||||
ClientList::Instance()->SendCLEList(connection->Admin(), nullptr, &console_connection, args[0].c_str());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user