1.1 --- a/core/smn_console.cpp Sun Jun 24 18:56:58 2007 +0000
1.2 +++ b/core/smn_console.cpp Sun Jun 24 19:40:25 2007 +0000
1.3 @@ -659,6 +659,8 @@
1.4 char buffer[1024];
1.5 size_t len = g_SourceMod.FormatString(buffer, sizeof(buffer)-2, pContext, params, 1);
1.6
1.7 + g_SourceMod.SetGlobalTarget(LANG_SERVER);
1.8 +
1.9 /* One byte for null terminator, one for newline */
1.10 buffer[len++] = '\n';
1.11 buffer[len] = '\0';
1.12 @@ -673,6 +675,8 @@
1.13 char buffer[1024];
1.14 size_t len = g_SourceMod.FormatString(buffer, sizeof(buffer)-2, pContext, params, 1);
1.15
1.16 + g_SourceMod.SetGlobalTarget(LANG_SERVER);
1.17 +
1.18 /* One byte for null terminator, one for newline */
1.19 buffer[len++] = '\n';
1.20 buffer[len] = '\0';
1.21 @@ -703,6 +707,8 @@
1.22 return pContext->ThrowNativeError("Client %d is not connected", params[1]);
1.23 }
1.24
1.25 + g_SourceMod.SetGlobalTarget(params[1]);
1.26 +
1.27 char buffer[256];
1.28 g_SourceMod.FormatString(buffer, sizeof(buffer), pContext, params, 2);
1.29
1.30 @@ -738,6 +744,8 @@
1.31
1.32 static cell_t ReplyToCommand(IPluginContext *pContext, const cell_t *params)
1.33 {
1.34 + g_SourceMod.SetGlobalTarget(params[1]);
1.35 +
1.36 /* Build the format string */
1.37 char buffer[1024];
1.38 size_t len = g_SourceMod.FormatString(buffer, sizeof(buffer)-2, pContext, params, 2);