Only send massages if any exist

Prior to this an empty message would be sent if no i messages present. Now we dont send anything if no messages is present.
This commit is contained in:
Madus 2015-02-16 13:45:57 +01:00 committed by Olof Larsson
parent 3e4f280b42
commit d6bcb13e9c

View File

@ -348,7 +348,10 @@ public class MassiveCommand
catch (MassiveException ex) catch (MassiveException ex)
{ {
// Sometimes ArgReaders (or commands themself) throw exceptions, to stop executing and notify the user. // Sometimes ArgReaders (or commands themself) throw exceptions, to stop executing and notify the user.
Mixin.messageOne(sender, ex.getMessages()); if (ex.hasMessages())
{
Mixin.messageOne(sender, ex.getMessages());
}
} }
finally finally
{ {