summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.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
commit93128712506bb0d4d422553b0480195cfd2cc9b3 (patch)
treeb43500e52a607ceca0781062ac17570fdf1d4ab7 /EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java
parent860d446d28776ec842fa53e8e08538d4e093d6e9 (diff)
downloadEssentials-93128712506bb0d4d422553b0480195cfd2cc9b3.tar
Essentials-93128712506bb0d4d422553b0480195cfd2cc9b3.tar.gz
Essentials-93128712506bb0d4d422553b0480195cfd2cc9b3.tar.lz
Essentials-93128712506bb0d4d422553b0480195cfd2cc9b3.tar.xz
Essentials-93128712506bb0d4d422553b0480195cfd2cc9b3.zip
Replacing martyr with Pircbot 1.5
Diffstat (limited to 'EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java')
-rw-r--r--EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java99
1 files changed, 0 insertions, 99 deletions
diff --git a/EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java b/EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java
deleted file mode 100644
index 1190ed64a..000000000
--- a/EssentialsUpdate/src/f00f/net/irc/martyr/commands/UserModeCommand.java
+++ /dev/null
@@ -1,99 +0,0 @@
-package f00f.net.irc.martyr.commands;
-
-import java.util.HashMap;
-import java.util.StringTokenizer;
-
-import f00f.net.irc.martyr.InCommand;
-import f00f.net.irc.martyr.Mode;
-import f00f.net.irc.martyr.clientstate.ClientState;
-import f00f.net.irc.martyr.modes.user.InvisibleMode;
-import f00f.net.irc.martyr.util.FullNick;
-import java.util.logging.Logger;
-
-/**
- * Defines a user MODE command.
- */
-public class UserModeCommand extends ModeCommand
-{
- static Logger log = Logger.getLogger(ModeCommand.class.getName());
-
- private FullNick user;
- private FullNick sender;
- //private List modes;
-
- private static HashMap<Character,Mode> modeTypes;
-
- public UserModeCommand( String prefix, String userStr, StringTokenizer tokens )
- {
-// System.out.println( prefix );
- sender = new FullNick( prefix );
- user = new FullNick( userStr );
-
- if( !sender.equals( user ) )
- {
- log.severe("UserModeCommand: Odd: mode change for a user that isn't us.");
- return;
- }
-
- makeModeTypes();
-
- //modes = parseModes( modeTypes, tokens );
-
-// System.out.println( modes );
- }
-
- private void makeModeTypes()
- {
- if( modeTypes == null )
- {
- modeTypes = new HashMap<Character,Mode>();
-
- // Add new mode types here
- registerMode( modeTypes, new InvisibleMode() );
- }
- }
-
-
- /**
- * Should not be called, as ModeCommand does the parsing and instantiation
- * of this class.
- */
- public InCommand parse( String prefix, String identifier, String params )
- {
- throw new IllegalStateException( "Don't call this method!" );
- }
-
- public String render()
- {
- throw new UnsupportedOperationException("Can't send user modes, yet." );
- }
-
- public FullNick getUser()
- {
- return user;
- }
-
- public FullNick getSender() {
- return sender;
- }
-
- {
- //log.debug("TODO: UserModeCommand: Can't send");
- //log.debug("TODO: UserModeCommand: Does not update client state");
- }
-
- public boolean updateClientState( ClientState state )
- {
- // TODO implement
- return false;
- }
-
- public String toString()
- {
- return "UserModeCommand";
- }
-
-
-}
-
-