summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2011-10-12 05:00:36 +0200
committersnowleo <schneeleo@gmail.com>2011-10-12 05:00:36 +0200
commitd187c58f30b2ec2a1a1fa50208f7724a69f78390 (patch)
tree7340c417f82803f23869667fc1562ef9f61095d6 /EssentialsUpdate/src/f00f/net/irc/martyr/replies/UnknownReply.java
parentea192ddd6d5b538e0bd0f6f1721890eb3c25de30 (diff)
downloadEssentials-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.java66
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 + "]";
- }
-
-}
-
-