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:
parent
3e4f280b42
commit
d6bcb13e9c
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user