Fixed lack of error checking on sm_motd.

This commit is contained in:
Erik Minekus
2010-06-23 23:39:39 -04:00
parent 45549a8173
commit 2eb5b5eb67
2 changed files with 8 additions and 2 deletions
+6
View File
@@ -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;