# HG changeset patch # User Tim Ringenbach # Date 1086762873 0 # Node ID 6430b09ccc7119cc463fadf8a7b9d14ac4e675e6 # Parent 933c7418fd03640839cebafe97dd59b87a08ebb7 [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 diff -r 933c7418fd03 -r 6430b09ccc71 src/protocols/irc/cmds.c --- 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), "", _("Supported IRC Commands:
" - "AWAY INVITE JOIN KICK
" - "ME MODE MSG NAMES
" - "NICK OP DEOP OPERWALL
" - "PART PING QUERY QUIT
" - "QUOTE REMOVE TOPIC UMODE
" - "VOICE DEVOICE WALLOPS WHOIS
"), - GAIM_MESSAGE_NO_LOG, time(NULL)); - } else { - gaim_conv_im_write(GAIM_CONV_IM(convo), "", _("Supported IRC Commands:
" - "AWAY JOIN ME MODE
" - "MSG NICK OPERWALL PING
" - "QUERY QUIT QUOTE UMODE
" - "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; diff -r 933c7418fd03 -r 6430b09ccc71 src/protocols/irc/irc.h --- 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); diff -r 933c7418fd03 -r 6430b09ccc71 src/protocols/irc/parse.c --- 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 },