blob: da1e63cd5ea39d1cce5590f1942b5e2b7e5484ac (
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
33
|
package f00f.net.irc.martyr.commands;
import f00f.net.irc.martyr.OutCommand;
/**
* Defines PASS command, optional part of the handshake to register on the network.
* @author Daniel Henninger
*/
public class PassCommand implements OutCommand
{
private String pass;
public static final String IDENTIFIER = "PASS";
/**
* @param pass the password for the user who is authenticating
* */
public PassCommand(String pass)
{
this.pass = pass;
}
public String render()
{
return IDENTIFIER + " " + pass;
}
public String getIrcIdentifier()
{
return IDENTIFIER;
}
}
|