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 authored and Olof Larsson committed 2015-02-19 15:25:47 +01:00
1 parent 3e4f280b42
commit d6bcb13e9c
1 file changed
+4 -1
@@ -348,7 +348,10 @@ public class MassiveCommand
catch (MassiveException ex)
{
// 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
{