From: Richard L. <rl...@us...> - 2006-01-26 02:30:32
|
Update of /cvsroot/gaim/gaim/src/protocols/yahoo In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18687/src/protocols/yahoo Modified Files: yahoo.c Log Message: A patch from Bleeter to add a /list command to Yahoo Index: yahoo.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/yahoo/yahoo.c,v retrieving revision 1.391 retrieving revision 1.392 diff -u -d -p -r1.391 -r1.392 --- yahoo.c 23 Jan 2006 12:31:27 -0000 1.391 +++ yahoo.c 26 Jan 2006 02:30:22 -0000 1.392 @@ -3540,6 +3540,17 @@ yahoogaim_cmd_chat_join(GaimConversation 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 @@ yahoogaim_register_commands(void) 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 = |