/*
* support for ban-like modes (as the TS6 spec calls them) that include
- * a mask with them. only handle those for now, stuff like +I can be added
- * easily if it's needed.
+ * a mask with them. (+b/+e/+I)
*/
- private HashSet<String> modesBans = new HashSet<String>();
- private HashSet<String> modesExempt = new HashSet<String>();
+ private final HashSet<String> modesBans = new HashSet<String>();
+ private final HashSet<String> modesExempt = new HashSet<String>();
+ private final HashSet<String> modesInvEx = new HashSet<String>();
public Channel(String channel, int ts)
{
set = modesBans;
else if (mode == 'e')
set = modesExempt;
+ else if (mode == 'I')
+ set = modesInvEx;
else
return;
return modesExempt;
}
+ public Set<String> getInvEx()
+ {
+ return modesInvEx;
+ }
+
public String getKey()
{
return key;