about summary refs log tree commit diff stats
path: root/src/ui/windows.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-03-24 21:46:00 +0000
committerJames Booth <boothj5@gmail.com>2013-03-24 21:46:00 +0000
commitb6095ca9550941df5872a25979924053391cb6d1 (patch)
tree3affc8f9a0919598a28efe3f61b9147c3b740c23 /src/ui/windows.c
parent270dae472fe72ab65bc570616d62c38a0836dcda (diff)
downloadprofani-tty-b6095ca9550941df5872a25979924053391cb6d1.tar.gz
Show message in console when receiving chat room invites
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r--src/ui/windows.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c
index 06645f5d..2905610e 100644
--- a/src/ui/windows.c
+++ b/src/ui/windows.c
@@ -1398,6 +1398,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)
 {
     int size = g_strv_length(accounts);