clean up handler tables

This commit is contained in:
Martin Michelsen
2022-09-01 23:35:37 -07:00
parent 47c2269fca
commit 01e4518c8e
14 changed files with 2373 additions and 1260 deletions
+2 -2
View File
@@ -933,7 +933,7 @@ struct SplitCommand {
// This function is called every time any player sends a chat beginning with a
// dollar sign. It is this function's responsibility to see if the chat is a
// command, and to execute the command and block the chat if it is.
void process_chat_command(std::shared_ptr<ServerState> s, std::shared_ptr<Lobby> l,
void on_chat_command(std::shared_ptr<ServerState> s, std::shared_ptr<Lobby> l,
std::shared_ptr<Client> c, const std::u16string& text) {
SplitCommand cmd(text);
@@ -958,7 +958,7 @@ void process_chat_command(std::shared_ptr<ServerState> s, std::shared_ptr<Lobby>
}
}
void process_chat_command(std::shared_ptr<ServerState> s,
void on_chat_command(std::shared_ptr<ServerState> s,
ProxyServer::LinkedSession& session, const std::u16string& text) {
SplitCommand cmd(text);