Allow using sm_nominate without args from console (#1803)

This commit is contained in:
Dysphie 2022-07-26 17:09:48 -03:00 committed by GitHub
parent 52da989762
commit 5f7b22d2a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,16 +196,8 @@ public Action Command_Nominate(int client, int args)
ReplySource source = GetCmdReplySource(); ReplySource source = GetCmdReplySource();
if (args == 0) if (args == 0)
{
if (source == SM_REPLY_TO_CHAT)
{ {
OpenNominationMenu(client); OpenNominationMenu(client);
}
else
{
ReplyToCommand(client, "[SM] Usage: sm_nominate <mapname>");
}
return Plugin_Handled; return Plugin_Handled;
} }