announce message clarification, setgame fixed

This commit is contained in:
Master Kwoth
2016-01-24 14:01:09 +01:00
parent 22aba88de5
commit 21b22add18
2 changed files with 6 additions and 2 deletions

View File

@ -315,9 +315,9 @@ namespace NadekoBot.Modules
cgb.CreateCommand(".setgame")
.Description("Sets the bots game.")
.Parameter("set_game", ParameterType.Required)
.Parameter("set_game", ParameterType.Unparsed)
.Do(e => {
if (e.User.Id != NadekoBot.OwnerID) return;
if (e.User.Id != NadekoBot.OwnerID || e.GetArg("set_game") != null) return;
client.SetGame(e.GetArg("set_game"));
});