Mercurial > pidgin
changeset 13041:465c7e1dfc7b
[gaim-migrate @ 15400]
A patch from Bleeter to add a /list command to Yahoo
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 26 Jan 2006 02:30:24 +0000 |
parents | b705e30efe61 |
children | fc4d2a386ba3 |
files | ChangeLog src/protocols/yahoo/yahoo.c |
diffstat | 2 files changed, 20 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Thu Jan 26 01:39:57 2006 +0000 +++ b/ChangeLog Thu Jan 26 02:30:24 2006 +0000 @@ -99,6 +99,7 @@ authorization * Account option to ignore chat and conference invitations (Peter Lawler) + * Added a /list command to bring up the room list (Peter Lawler) AIM/ICQ Features: * ICQ file transfer support with newer ICQ clients (Jonathan Clark,
--- a/src/protocols/yahoo/yahoo.c Thu Jan 26 01:39:57 2006 +0000 +++ b/src/protocols/yahoo/yahoo.c Thu Jan 26 02:30:24 2006 +0000 @@ -3540,6 +3540,17 @@ return GAIM_CMD_RET_OK; } +static GaimCmdRet +yahoogaim_cmd_chat_list(GaimConversation *conv, const char *cmd, + char **args, char **error, void *data) +{ + GaimAccount *account = gaim_conversation_get_account(conv); + if (*args && args[0]) + return GAIM_CMD_RET_FAILED; + gaim_roomlist_show_with_account(account); + return GAIM_CMD_RET_OK; +} + static gboolean yahoo_offline_message(const GaimBuddy *buddy) { return TRUE; @@ -3554,15 +3565,19 @@ GAIM_CMD_FLAG_PRPL_ONLY, "prpl-yahoo", yahoogaim_cmd_chat_join, _("join <room>: Join a chat room on the Yahoo network"), NULL); + gaim_cmd_register("list", "", GAIM_CMD_P_PRPL, + GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_CHAT | + GAIM_CMD_FLAG_PRPL_ONLY, + "prpl-yahoo", yahoogaim_cmd_chat_list, + _("list: List rooms on the Yahoo network"), NULL); gaim_cmd_register("buzz", "", GAIM_CMD_P_PRPL, GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, "prpl-yahoo", yahoogaim_cmd_buzz, _("buzz: Buzz a user to get their attention"), NULL); - gaim_cmd_register("doodle", "", GAIM_CMD_P_PRPL, - GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, - "prpl-yahoo", yahoo_doodle_gaim_cmd_start, - _("doodle: Request user to start a Doodle session"), NULL); + GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, + "prpl-yahoo", yahoo_doodle_gaim_cmd_start, + _("doodle: Request user to start a Doodle session"), NULL); } static GaimWhiteboardPrplOps yahoo_whiteboard_prpl_ops =