mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 21:16:22 +00:00
Updated /info command for chat and private chat
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user