Updated /info command for chat and private chat

This commit is contained in:
James Booth
2013-01-20 23:30:15 +00:00
parent 5c04adde2b
commit 97a497c355
4 changed files with 34 additions and 6 deletions

View File

@@ -1174,6 +1174,32 @@ cons_show_info(const char * const contact)
}
}
void
win_show_info(void)
{
PContact pcontact = contact_list_get_contact(win_current_get_recipient());
if (pcontact != NULL) {
_win_show_info(current->win, pcontact);
} else {
win_current_show("No such contact \"%s\" in roster.", win_current_get_recipient());
}
}
void
win_private_show_info(void)
{
Jid *jid = jid_create(win_current_get_recipient());
PContact pcontact = muc_get_participant(jid->barejid, jid->resourcepart);
if (pcontact != NULL) {
_win_show_info(current->win, pcontact);
} else {
win_current_show("No such participant \"%s\" in room.", jid->resourcepart);
}
}
void
cons_show_status(const char * const contact)
{