Show message in console when receiving chat room invites
This commit is contained in:
@@ -176,6 +176,8 @@ void cons_show_account_list(gchar **accounts);
|
||||
void cons_show_room_list(GSList *room, const char * const conference_node);
|
||||
void cons_show_disco_items(GSList *items, const char * const jid);
|
||||
void cons_show_disco_info(const char *from, GSList *identities, GSList *features);
|
||||
void cons_show_room_invite(const char * const invitor, const char * const room,
|
||||
const char * const reason);
|
||||
|
||||
// status bar actions
|
||||
void status_bar_refresh(void);
|
||||
|
||||
@@ -1397,6 +1397,20 @@ cons_show_status(const char * const contact)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_room_invite(const char * const invitor, const char * const room,
|
||||
const char * const reason)
|
||||
{
|
||||
cons_show("");
|
||||
_win_show_time(console->win, '-');
|
||||
wprintw(console->win, "%s has invited you to join %s", invitor, room);
|
||||
if (reason != NULL) {
|
||||
wprintw(console->win, ", \"%s\"", reason);
|
||||
}
|
||||
wprintw(console->win, "\n");
|
||||
cons_show("Type \"/join %s\" to join the room", room);
|
||||
}
|
||||
|
||||
void
|
||||
cons_show_account_list(gchar **accounts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user