Archived
0

Added Ignore to ChatGroups

This commit is contained in:
minenash
2018-01-15 20:42:41 -05:00
parent 26e71ac45c
commit 166b69f104

View File

@@ -368,7 +368,8 @@ public class Chatgroups implements Module, Listener
{
String rgroup = getGroup(recipient);
if ( rgroup != null && (ignore == null? true : ignore.sendTo(recipient)) )
if ( rgroup != null && (ignore == null? true : ignore.sendTo(recipient))
&& (ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(sender).sendTo(recipient)? true : false : true))
return rgroup.equals(group);
else
return false;
@@ -404,7 +405,8 @@ public class Chatgroups implements Module, Listener
public boolean sendTo(CommandSender recipient)
{
String rgroup = getGroup(recipient);
if (rgroup != null)
if (rgroup != null
&& (ModuleLoader.exists("Ignore")? Ignore.getIgnoredBy(sender).sendTo(recipient)? true : false : true))
return rgroup.equals(group);
else
return false;