From 305d53f094990d89f630c5ae00fc88d72fdcc9e5 Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Mon, 18 Mar 2013 20:11:50 -0400 Subject: [PATCH] Fixed possible rte in basetriggers for !ingame clients (bug 5191, r=psychonic). --- plugins/basetriggers.sp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index 8f72006f..b8c92360 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -201,6 +201,9 @@ public Action:Command_Timeleft(client, args) public Action:Command_Nextmap(client, args) { + if (client && !IsClientInGame(client)) + return Plugin_Handled; + decl String:map[64]; GetNextMap(map, sizeof(map)); @@ -225,6 +228,9 @@ public Action:Command_Motd(client, args) return Plugin_Handled; } + if (!IsClientInGame(client)) + return Plugin_Handled; + ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX); return Plugin_Handled; @@ -509,7 +515,7 @@ ShowTimeLeft(client, who) { PrintToChatAll("[SM] %s", finalOutput); } - else if (client != 0) + else if (client != 0 && IsClientInGame(client)) { PrintToChat(client, "[SM] %s", finalOutput); }