summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/InviteOnlyMode.java
blob: 45da646c9862d4c6aee9ea8c4640528acc0658bf (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
31
32
package f00f.net.irc.martyr.modes.channel;

import f00f.net.irc.martyr.Mode;

/**
 *    <p>Invite Only Flag - When the channel flag 'i' is set, new
 *    members are only accepted if their mask matches Invite-list (See
 *    section 4.3.2) or they have been invited by a channel operator.
 *    This flag also restricts the usage of the INVITE command (See
 *    "IRC Client Protocol" [IRC-CLIENT]) to channel operators.</p>
 * (From RFC2811)
 *
 * @see InviteMaskMode
 */
public class InviteOnlyMode extends GenericChannelMode
{
	public boolean requiresParam()
	{
		return false;
	}
	
	public char getChar()
	{
		return 'i';
	}
	
	public Mode newInstance()
	{
		return new InviteOnlyMode();
	}
}