summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/modes/channel/NoExtMsgMode.java
blob: 029baf7605363391acc53379d3997f21b14fa4e9 (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>No Messages To Channel From Clients On The Outside - When the
 *    channel flag 'n' is set, only channel members MAY send messages
 *    to the channel.</p>
 * 
 *    <p>This flag only affects users.</p>
 * (From RFC2811)
 */
public class NoExtMsgMode extends GenericChannelMode
{
	public boolean requiresParam()
	{
		return false;
	}
	
	public char getChar()
	{
		return 'n';
	}
	
	public Mode newInstance()
	{
		return new NoExtMsgMode();
	}
}