arg test for IM command
This commit is contained in:
parent
c22190aab6
commit
e574ed6144
1 changed files with 10 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
|
using BetterSecondBotShared.Static;
|
||||||
|
|
||||||
namespace BSB.Commands.Chat
|
namespace BSB.Commands.Chat
|
||||||
{
|
{
|
||||||
|
|
@ -18,8 +19,15 @@ namespace BSB.Commands.Chat
|
||||||
{
|
{
|
||||||
if (UUID.TryParse(args[0], out UUID target_av) == true)
|
if (UUID.TryParse(args[0], out UUID target_av) == true)
|
||||||
{
|
{
|
||||||
bot.sendIM(target_av, args[1]);
|
if (helpers.notempty(args[1]) == true)
|
||||||
return true;
|
{
|
||||||
|
bot.sendIM(target_av, args[1]);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return Failed("Arg 2 is empty");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue