changeset 9248:6430b09ccc71

[gaim-migrate @ 10047] removing irc's /help command, since the core now provides one, that does exactly the same thing. Maybe IRC's version was prettier, but we can fix that, if need be. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 09 Jun 2004 06:34:33 +0000
parents 933c7418fd03
children 07f20f411529
files src/protocols/irc/cmds.c src/protocols/irc/irc.h src/protocols/irc/parse.c
diffstat 3 files changed, 0 insertions(+), 31 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/cmds.c	Wed Jun 09 06:09:08 2004 +0000
+++ b/src/protocols/irc/cmds.c	Wed Jun 09 06:34:33 2004 +0000
@@ -128,35 +128,6 @@
 	return 1;
 }
 
-int irc_cmd_help(struct irc_conn *irc, const char *cmd, const char *target, const char **args)
-{
-	GaimConversation *convo = gaim_find_conversation_with_account(target, irc->account);
-
-	/* XXX we should eventually have per-command help */
-
-	if (!convo)
-		return 0;
-
-	if (gaim_conversation_get_type(convo) == GAIM_CONV_CHAT) {
-		gaim_conv_chat_write(GAIM_CONV_CHAT(convo), "", _("<B>Supported IRC Commands:</B><BR>"
-							"AWAY INVITE JOIN KICK<BR>"
-							"ME MODE MSG NAMES<BR>"
-							"NICK OP DEOP OPERWALL<BR>"
-							"PART PING QUERY QUIT<BR>"
-							"QUOTE REMOVE TOPIC UMODE<BR>"
-							"VOICE DEVOICE WALLOPS WHOIS<BR>"),
-				GAIM_MESSAGE_NO_LOG, time(NULL));
-	} else {
-		gaim_conv_im_write(GAIM_CONV_IM(convo), "", _("<B>Supported IRC Commands:</B><BR>"
-						    "AWAY JOIN ME MODE<BR>"
-						    "MSG NICK OPERWALL PING<BR>"
-						    "QUERY QUIT QUOTE UMODE<BR>"
-						    "WALLOPS WHOIS"), GAIM_MESSAGE_NO_LOG, time(NULL));
-	}
-
-	return 0;
-}
-
 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args)
 {
 	char *buf;
--- a/src/protocols/irc/irc.h	Wed Jun 09 06:09:08 2004 +0000
+++ b/src/protocols/irc/irc.h	Wed Jun 09 06:34:33 2004 +0000
@@ -135,7 +135,6 @@
 int irc_cmd_default(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 int irc_cmd_away(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 int irc_cmd_ctcp_action(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
-int irc_cmd_help(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 int irc_cmd_invite(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 int irc_cmd_join(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
 int irc_cmd_kick(struct irc_conn *irc, const char *cmd, const char *target, const char **args);
--- a/src/protocols/irc/parse.c	Wed Jun 09 06:09:08 2004 +0000
+++ b/src/protocols/irc/parse.c	Wed Jun 09 06:34:33 2004 +0000
@@ -109,7 +109,6 @@
 	{ "away", ":", irc_cmd_away },
 	{ "deop", ":", irc_cmd_op },
 	{ "devoice", ":", irc_cmd_op },
-	{ "help", "v", irc_cmd_help },
 	{ "invite", ":", irc_cmd_invite },
 	{ "j", "cv", irc_cmd_join },
 	{ "join", "cv", irc_cmd_join },