From 92d3fc3d8c0ce1a723826231fc8b9e110369f337 Mon Sep 17 00:00:00 2001 From: Erik Minekus Date: Wed, 23 Jun 2010 23:41:47 -0400 Subject: [PATCH] Fixed lack of error checking on sm_motd. (bug 4460, r=dvander) --- plugins/basetriggers.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/basetriggers.sp b/plugins/basetriggers.sp index b3428134..0a93c04a 100644 --- a/plugins/basetriggers.sp +++ b/plugins/basetriggers.sp @@ -210,6 +210,12 @@ public Action:Command_Nextmap(client, args) public Action:Command_Motd(client, args) { + if (client == 0) + { + ReplyToCommand(client, "[SM] %t", "Command is in-game only"); + return Plugin_Handled; + } + ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX); return Plugin_Handled;