1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

Show info in room for participant

This commit is contained in:
James Booth 2014-06-03 21:20:13 +01:00
parent 8ae6d359d7
commit c65b43f081
3 changed files with 6 additions and 9 deletions

View File

@ -1395,14 +1395,9 @@ cmd_info(gchar **args, struct cmd_help_t help)
{
case WIN_MUC:
if (usr != NULL) {
pcontact = muc_get_participant(recipient, usr);
if (pcontact != NULL) {
cons_show_info(pcontact);
} else {
cons_show("No such participant \"%s\" in room.", usr);
}
ui_info_room(usr);
} else {
cons_show("No nickname supplied to /info in chat room.");
ui_current_print_line("You must specify a nickname.");
}
break;
case WIN_CHAT:

View File

@ -1832,7 +1832,7 @@ _ui_status_room(const char * const contact)
win_vprint_line(current, '-', 0, "No such participant \"%s\" in room.", contact);
}
}
/*
static void
_ui_info_room(const char * const contact)
{
@ -1845,7 +1845,7 @@ _ui_info_room(const char * const contact)
win_vprint_line(current, '-', 0, "No such participant \"%s\" in room.", contact);
}
}
*/
static gint
_ui_unread(void)
{
@ -2174,6 +2174,7 @@ ui_init_module(void)
ui_status = _ui_status;
ui_status_private = _ui_status_private;
ui_status_room = _ui_status_room;
ui_info_room = _ui_info_room;
ui_unread = _ui_unread;
ui_win_unread = _ui_win_unread;
ui_ask_password = _ui_ask_password;

View File

@ -151,6 +151,7 @@ void (*ui_handle_room_join_error)(const char * const room, const char * const er
// contact status functions
void (*ui_status_room)(const char * const contact);
void (*ui_info_room)(const char * const contact);
void (*ui_status)(void);
void (*ui_status_private)(void);