summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/InviteMaskMode.java
blob: c9faa27fc1a99a356c36a96306d98e174975e8d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package f00f.net.irc.martyr.modes.channel;

import f00f.net.irc.martyr.Mode;

/**
 *    <p>Channel Invitation - For channels which have the invite-only
 *    flag set (See Section 4.2.2 (Invite Only Flag)), users whose
 *    address matches an invitation mask set for the channel are
 *    allowed to join the channel without any
 *    invitation.</p>
 * (From RFC2811)
 */
public class InviteMaskMode extends GenericChannelMask
{
	public boolean requiresParam()
	{
		return true;
	}
	
	public char getChar()
	{
		return 'I';
	}
	
	public Mode newInstance()
	{
		return new InviteMaskMode();
	}
}