diff --git a/Core/Commands/Chat/im.cs b/Core/Commands/Chat/im.cs index 870231b..6b157f2 100644 --- a/Core/Commands/Chat/im.cs +++ b/Core/Commands/Chat/im.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Text; using System.Linq; using OpenMetaverse; +using BetterSecondBotShared.Static; namespace BSB.Commands.Chat { @@ -18,8 +19,15 @@ namespace BSB.Commands.Chat { if (UUID.TryParse(args[0], out UUID target_av) == true) { - bot.sendIM(target_av, args[1]); - return true; + if (helpers.notempty(args[1]) == true) + { + bot.sendIM(target_av, args[1]); + return true; + } + else + { + return Failed("Arg 2 is empty"); + } } else {