From 58ca1508bc5ee41eec55c7bf593aa8652e8f2f60 Mon Sep 17 00:00:00 2001 From: devicenull Date: Wed, 23 Jun 2010 09:23:23 -0400 Subject: [PATCH] Fixed inaccuracy in CommandListener documentation --- plugins/include/console.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/plugins/include/console.inc b/plugins/include/console.inc index 28fb959b..9e8b9138 100644 --- a/plugins/include/console.inc +++ b/plugins/include/console.inc @@ -839,7 +839,11 @@ native RemoveServerTag(const String:tag[]); /** * Callback for command listeners. This is invoked whenever any command * reaches the server, from the server console itself or a player. - + * + * Clients may be in the process of connecting when they are executing commands + * IsClientConnected(client) is not guaranteed to return true. Other functions + * such as GetClientIP() may not work at this point either. + * * Returning Plugin_Handled or Plugin_Stop will prevent the original, * baseline code from running. * @@ -849,8 +853,8 @@ native RemoveServerTag(const String:tag[]); * * C++ command dispatch hooks from Metamod:Source plugins * * Reg*Cmd() hooks that did not create new commands. * - * @param client Client, or 0 for server. Client will be connected but - * not necessarily in game. + * @param client Client, or 0 for server. + * Client may not be connected or in game. * @param command Command name, lower case. To get name as typed, use * GetCmdArg() and specify argument 0. * @param argc Argument count.