From e33cfd18d599741a74f2b9eb20ddcf598bd13237 Mon Sep 17 00:00:00 2001 From: Sebastian Kaspari Date: Tue, 6 Apr 2010 22:09:07 +0200 Subject: [PATCH] Some cleanup in org.yaaic.command.handler.* --- src/org/yaaic/command/handler/DCCHandler.java | 1 - src/org/yaaic/command/handler/DeopHandler.java | 4 ++-- src/org/yaaic/command/handler/DevoiceHandler.java | 4 ++-- src/org/yaaic/command/handler/EchoHandler.java | 4 ++-- src/org/yaaic/command/handler/HelpHandler.java | 2 +- src/org/yaaic/command/handler/JoinHandler.java | 2 +- src/org/yaaic/command/handler/KickHandler.java | 5 +++-- src/org/yaaic/command/handler/MeHandler.java | 3 +++ src/org/yaaic/command/handler/ModeHandler.java | 3 +++ src/org/yaaic/command/handler/NamesHandler.java | 1 - src/org/yaaic/command/handler/NickHandler.java | 1 - src/org/yaaic/command/handler/NoticeHandler.java | 1 - src/org/yaaic/command/handler/OpHandler.java | 4 ++-- src/org/yaaic/command/handler/PartHandler.java | 6 +++++- src/org/yaaic/command/handler/QueryHandler.java | 3 +++ src/org/yaaic/command/handler/QuitHandler.java | 1 - src/org/yaaic/command/handler/TopicHandler.java | 1 - src/org/yaaic/command/handler/VoiceHandler.java | 1 - 18 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/org/yaaic/command/handler/DCCHandler.java b/src/org/yaaic/command/handler/DCCHandler.java index af0f426..b57af6f 100644 --- a/src/org/yaaic/command/handler/DCCHandler.java +++ b/src/org/yaaic/command/handler/DCCHandler.java @@ -77,7 +77,6 @@ public class DCCHandler extends BaseHandler return "/dcc SEND "; } - /** * Description of /dcc */ diff --git a/src/org/yaaic/command/handler/DeopHandler.java b/src/org/yaaic/command/handler/DeopHandler.java index 7988e99..27a8c11 100644 --- a/src/org/yaaic/command/handler/DeopHandler.java +++ b/src/org/yaaic/command/handler/DeopHandler.java @@ -59,12 +59,12 @@ public class DeopHandler extends BaseHandler return "/voice "; } - /** * Description of /voice */ @Override - public String getDescription() { + public String getDescription() + { return "Give a user voice status"; } } diff --git a/src/org/yaaic/command/handler/DevoiceHandler.java b/src/org/yaaic/command/handler/DevoiceHandler.java index c42b7a7..605131b 100644 --- a/src/org/yaaic/command/handler/DevoiceHandler.java +++ b/src/org/yaaic/command/handler/DevoiceHandler.java @@ -59,12 +59,12 @@ public class DevoiceHandler extends BaseHandler return "/devoice "; } - /** * Description of /devoice */ @Override - public String getDescription() { + public String getDescription() + { return "Remove voice status from a user"; } } diff --git a/src/org/yaaic/command/handler/EchoHandler.java b/src/org/yaaic/command/handler/EchoHandler.java index 02f7ff1..687e328 100644 --- a/src/org/yaaic/command/handler/EchoHandler.java +++ b/src/org/yaaic/command/handler/EchoHandler.java @@ -67,12 +67,12 @@ public class EchoHandler extends BaseHandler return "/echo "; } - /** * Description of /echo */ @Override - public String getDescription() { + public String getDescription() + { return "Print text to window"; } } diff --git a/src/org/yaaic/command/handler/HelpHandler.java b/src/org/yaaic/command/handler/HelpHandler.java index 37ce343..11041c6 100644 --- a/src/org/yaaic/command/handler/HelpHandler.java +++ b/src/org/yaaic/command/handler/HelpHandler.java @@ -76,6 +76,6 @@ public class HelpHandler extends BaseHandler @Override public String getDescription() { - return "lists all available commands"; + return "Lists all available commands"; } } diff --git a/src/org/yaaic/command/handler/JoinHandler.java b/src/org/yaaic/command/handler/JoinHandler.java index 5e4aa23..ea2fb55 100644 --- a/src/org/yaaic/command/handler/JoinHandler.java +++ b/src/org/yaaic/command/handler/JoinHandler.java @@ -63,6 +63,6 @@ public class JoinHandler extends BaseHandler @Override public String getDescription() { - return "join a channel"; + return "Join a channel"; } } diff --git a/src/org/yaaic/command/handler/KickHandler.java b/src/org/yaaic/command/handler/KickHandler.java index 7c895cf..a7e273f 100644 --- a/src/org/yaaic/command/handler/KickHandler.java +++ b/src/org/yaaic/command/handler/KickHandler.java @@ -65,7 +65,8 @@ public class KickHandler extends BaseHandler * Description of /kick */ @Override - public String getDescription() { - return "kicks a user"; + public String getDescription() + { + return "Kicks a user"; } } diff --git a/src/org/yaaic/command/handler/MeHandler.java b/src/org/yaaic/command/handler/MeHandler.java index a300746..5bd7d88 100644 --- a/src/org/yaaic/command/handler/MeHandler.java +++ b/src/org/yaaic/command/handler/MeHandler.java @@ -78,6 +78,9 @@ public class MeHandler extends BaseHandler return "/me "; } + /** + * Description of /me + */ @Override public String getDescription() { diff --git a/src/org/yaaic/command/handler/ModeHandler.java b/src/org/yaaic/command/handler/ModeHandler.java index 0a2e659..da80961 100644 --- a/src/org/yaaic/command/handler/ModeHandler.java +++ b/src/org/yaaic/command/handler/ModeHandler.java @@ -59,6 +59,9 @@ public class ModeHandler extends BaseHandler return "/mode "; } + /** + * Description of /mode + */ @Override public String getDescription() { diff --git a/src/org/yaaic/command/handler/NamesHandler.java b/src/org/yaaic/command/handler/NamesHandler.java index ca152e0..13694b4 100644 --- a/src/org/yaaic/command/handler/NamesHandler.java +++ b/src/org/yaaic/command/handler/NamesHandler.java @@ -80,7 +80,6 @@ public class NamesHandler extends BaseHandler return "/names"; } - /** * Description of /names */ diff --git a/src/org/yaaic/command/handler/NickHandler.java b/src/org/yaaic/command/handler/NickHandler.java index 49e94aa..e24d13e 100644 --- a/src/org/yaaic/command/handler/NickHandler.java +++ b/src/org/yaaic/command/handler/NickHandler.java @@ -55,7 +55,6 @@ public class NickHandler extends BaseHandler return "/nick "; } - /** * Description of /nick */ diff --git a/src/org/yaaic/command/handler/NoticeHandler.java b/src/org/yaaic/command/handler/NoticeHandler.java index 0ad3124..7a9ea94 100644 --- a/src/org/yaaic/command/handler/NoticeHandler.java +++ b/src/org/yaaic/command/handler/NoticeHandler.java @@ -75,7 +75,6 @@ public class NoticeHandler extends BaseHandler return "/notice "; } - /** * Description of /notice */ diff --git a/src/org/yaaic/command/handler/OpHandler.java b/src/org/yaaic/command/handler/OpHandler.java index 8a3a7df..f19cac3 100644 --- a/src/org/yaaic/command/handler/OpHandler.java +++ b/src/org/yaaic/command/handler/OpHandler.java @@ -59,12 +59,12 @@ public class OpHandler extends BaseHandler return "/op "; } - /** * Description of /deop */ @Override - public String getDescription() { + public String getDescription() + { return "Give a user operator status"; } } diff --git a/src/org/yaaic/command/handler/PartHandler.java b/src/org/yaaic/command/handler/PartHandler.java index 57ba100..c3b1905 100644 --- a/src/org/yaaic/command/handler/PartHandler.java +++ b/src/org/yaaic/command/handler/PartHandler.java @@ -63,8 +63,12 @@ public class PartHandler extends BaseHandler return "/part []"; } + /** + * Description of /part + */ @Override - public String getDescription() { + public String getDescription() + { return "leave the current channel"; } } diff --git a/src/org/yaaic/command/handler/QueryHandler.java b/src/org/yaaic/command/handler/QueryHandler.java index 36a96e7..d5ed5bd 100644 --- a/src/org/yaaic/command/handler/QueryHandler.java +++ b/src/org/yaaic/command/handler/QueryHandler.java @@ -79,6 +79,9 @@ public class QueryHandler extends BaseHandler return "/query "; } + /** + * Description of /query + */ @Override public String getDescription() { diff --git a/src/org/yaaic/command/handler/QuitHandler.java b/src/org/yaaic/command/handler/QuitHandler.java index e52657a..8e6b9c5 100644 --- a/src/org/yaaic/command/handler/QuitHandler.java +++ b/src/org/yaaic/command/handler/QuitHandler.java @@ -55,7 +55,6 @@ public class QuitHandler extends BaseHandler return "/quit []"; } - /** * Description of /quit */ diff --git a/src/org/yaaic/command/handler/TopicHandler.java b/src/org/yaaic/command/handler/TopicHandler.java index dd367c1..64aeee2 100644 --- a/src/org/yaaic/command/handler/TopicHandler.java +++ b/src/org/yaaic/command/handler/TopicHandler.java @@ -66,7 +66,6 @@ public class TopicHandler extends BaseHandler return "/topic []"; } - /** * Description of /topic */ diff --git a/src/org/yaaic/command/handler/VoiceHandler.java b/src/org/yaaic/command/handler/VoiceHandler.java index 5657cf7..959e82f 100644 --- a/src/org/yaaic/command/handler/VoiceHandler.java +++ b/src/org/yaaic/command/handler/VoiceHandler.java @@ -59,7 +59,6 @@ public class VoiceHandler extends BaseHandler return "/voice "; } - /** * Description of /voice */