Fixed lack of error checking on sm_motd. (bug 4460, r=dvander)
This commit is contained in:
		
							parent
							
								
									5d89599799
								
							
						
					
					
						commit
						92d3fc3d8c
					
				@ -210,6 +210,12 @@ public Action:Command_Nextmap(client, args)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
public Action:Command_Motd(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);
 | 
						ShowMOTDPanel(client, "Message Of The Day", "motd", MOTDPANEL_TYPE_INDEX);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return Plugin_Handled;
 | 
						return Plugin_Handled;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user