Mercurial > pidgin
comparison src/protocols/yahoo/yahoo.c @ 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 | eb64b2b26e56 |
children | a0a4b44239e8 |
comparison
equal
deleted
inserted
replaced
13040:b705e30efe61 | 13041:465c7e1dfc7b |
---|---|
3538 | 3538 |
3539 g_hash_table_destroy(comp); | 3539 g_hash_table_destroy(comp); |
3540 return GAIM_CMD_RET_OK; | 3540 return GAIM_CMD_RET_OK; |
3541 } | 3541 } |
3542 | 3542 |
3543 static GaimCmdRet | |
3544 yahoogaim_cmd_chat_list(GaimConversation *conv, const char *cmd, | |
3545 char **args, char **error, void *data) | |
3546 { | |
3547 GaimAccount *account = gaim_conversation_get_account(conv); | |
3548 if (*args && args[0]) | |
3549 return GAIM_CMD_RET_FAILED; | |
3550 gaim_roomlist_show_with_account(account); | |
3551 return GAIM_CMD_RET_OK; | |
3552 } | |
3553 | |
3543 static gboolean yahoo_offline_message(const GaimBuddy *buddy) | 3554 static gboolean yahoo_offline_message(const GaimBuddy *buddy) |
3544 { | 3555 { |
3545 return TRUE; | 3556 return TRUE; |
3546 } | 3557 } |
3547 | 3558 |
3552 gaim_cmd_register("join", "s", GAIM_CMD_P_PRPL, | 3563 gaim_cmd_register("join", "s", GAIM_CMD_P_PRPL, |
3553 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_CHAT | | 3564 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_CHAT | |
3554 GAIM_CMD_FLAG_PRPL_ONLY, | 3565 GAIM_CMD_FLAG_PRPL_ONLY, |
3555 "prpl-yahoo", yahoogaim_cmd_chat_join, | 3566 "prpl-yahoo", yahoogaim_cmd_chat_join, |
3556 _("join <room>: Join a chat room on the Yahoo network"), NULL); | 3567 _("join <room>: Join a chat room on the Yahoo network"), NULL); |
3568 gaim_cmd_register("list", "", GAIM_CMD_P_PRPL, | |
3569 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_CHAT | | |
3570 GAIM_CMD_FLAG_PRPL_ONLY, | |
3571 "prpl-yahoo", yahoogaim_cmd_chat_list, | |
3572 _("list: List rooms on the Yahoo network"), NULL); | |
3557 gaim_cmd_register("buzz", "", GAIM_CMD_P_PRPL, | 3573 gaim_cmd_register("buzz", "", GAIM_CMD_P_PRPL, |
3558 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, | 3574 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, |
3559 "prpl-yahoo", yahoogaim_cmd_buzz, | 3575 "prpl-yahoo", yahoogaim_cmd_buzz, |
3560 _("buzz: Buzz a user to get their attention"), NULL); | 3576 _("buzz: Buzz a user to get their attention"), NULL); |
3561 | |
3562 gaim_cmd_register("doodle", "", GAIM_CMD_P_PRPL, | 3577 gaim_cmd_register("doodle", "", GAIM_CMD_P_PRPL, |
3563 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, | 3578 GAIM_CMD_FLAG_IM | GAIM_CMD_FLAG_PRPL_ONLY, |
3564 "prpl-yahoo", yahoo_doodle_gaim_cmd_start, | 3579 "prpl-yahoo", yahoo_doodle_gaim_cmd_start, |
3565 _("doodle: Request user to start a Doodle session"), NULL); | 3580 _("doodle: Request user to start a Doodle session"), NULL); |
3566 } | 3581 } |
3567 | 3582 |
3568 static GaimWhiteboardPrplOps yahoo_whiteboard_prpl_ops = | 3583 static GaimWhiteboardPrplOps yahoo_whiteboard_prpl_ops = |
3569 { | 3584 { |
3570 yahoo_doodle_start, | 3585 yahoo_doodle_start, |