From a21412715a3c05af67d8e6137890dc48c2dfd954 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Sat, 12 Mar 2016 13:09:29 +0100 Subject: [PATCH] fixed .uid --- NadekoBot/Modules/Administration.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NadekoBot/Modules/Administration.cs b/NadekoBot/Modules/Administration.cs index beb5852f..22f67efc 100644 --- a/NadekoBot/Modules/Administration.cs +++ b/NadekoBot/Modules/Administration.cs @@ -21,6 +21,7 @@ namespace NadekoBot.Modules { commands.Add(new PlayingRotate(this)); commands.Add(new RatelimitCommand(this)); commands.Add(new VoicePlusTextCommand(this)); + //commands.Add(new CrossServerTextChannel(this)); } public override string Prefix { get; } = NadekoBot.Config.CommandPrefixes.Administration; @@ -374,10 +375,10 @@ namespace NadekoBot.Modules { cgb.CreateCommand(Prefix + "uid").Alias(Prefix + "userid") .Description("Shows user ID.") - .Parameter("user", ParameterType.Optional) + .Parameter("user", ParameterType.Unparsed) .Do(async e => { var usr = e.User; - if (string.IsNullOrWhiteSpace(e.GetArg("user"))) usr = e.Channel.FindUsers(e.GetArg("user")).FirstOrDefault(); + if (!string.IsNullOrWhiteSpace(e.GetArg("user"))) usr = e.Channel.FindUsers(e.GetArg("user")).FirstOrDefault(); if (usr == null) return; await e.Channel.SendMessage($"Id of the user { usr.Name } is { usr.Id }");