diff options
author | snowleo <schneeleo@gmail.com> | 2011-10-12 05:00:36 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-10-12 05:00:36 +0200 |
commit | d187c58f30b2ec2a1a1fa50208f7724a69f78390 (patch) | |
tree | 7340c417f82803f23869667fc1562ef9f61095d6 /EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java | |
parent | ea192ddd6d5b538e0bd0f6f1721890eb3c25de30 (diff) | |
download | Essentials-d187c58f30b2ec2a1a1fa50208f7724a69f78390.tar Essentials-d187c58f30b2ec2a1a1fa50208f7724a69f78390.tar.gz Essentials-d187c58f30b2ec2a1a1fa50208f7724a69f78390.tar.lz Essentials-d187c58f30b2ec2a1a1fa50208f7724a69f78390.tar.xz Essentials-d187c58f30b2ec2a1a1fa50208f7724a69f78390.zip |
Replacing martyr with Pircbot 1.5
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java')
-rw-r--r-- | EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java b/EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java deleted file mode 100644 index f4ebc14d6..000000000 --- a/EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java +++ /dev/null @@ -1,66 +0,0 @@ -package f00f.net.irc.martyr.replies; - -import f00f.net.irc.martyr.InCommand; -import f00f.net.irc.martyr.State; -import f00f.net.irc.martyr.commands.UnknownCommand; - - -/** - * A container for unknown replies. - */ -public class UnknownReply extends UnknownCommand -{ - private String replyStr; - private int replyCode; - - public UnknownReply( String ident ) - { - replyStr = ident; - replyCode = Integer.parseInt( ident ); - } - - public int getReplyCode() - { - return replyCode; - } - - public String getReply() - { - return replyStr; - } - - public static boolean isReply( String ident ) - { - char c = ident.charAt(0); - return ( c == '0' || c == '2' || c == '3' ); - } - - public State getState() - { - return State.UNKNOWN; - } - - /** - * Never parsed. - */ - public InCommand parse( String prefix, String identifier, String params ) - { - throw new UnsupportedOperationException("UnknownReply does no parsing."); - } - - /** - * Unknown, so we don't know what the identifier is ahead of time. - */ - public String getIrcIdentifier() - { - return replyStr; - } - - public String toString() - { - return "UnknownReply[" + replyStr + "]"; - } - -} - - |