Added Ignore to ChatGroups
This commit is contained in:
@@ -368,7 +368,8 @@ public class Chatgroups implements Module, Listener
|
|||||||
{
|
{
|
||||||
|
|
||||||
String rgroup = getGroup(recipient);
|
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);
|
return rgroup.equals(group);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
@@ -404,7 +405,8 @@ public class Chatgroups implements Module, Listener
|
|||||||
public boolean sendTo(CommandSender recipient)
|
public boolean sendTo(CommandSender recipient)
|
||||||
{
|
{
|
||||||
String rgroup = getGroup(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);
|
return rgroup.equals(group);
|
||||||
else
|
else
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user