Added desktop notifications for chat room invites

Use "/notify invite on|off"
This commit is contained in:
James Booth
2013-04-22 23:48:23 +01:00
parent 9373f41fa4
commit f099bf9a7c
6 changed files with 45 additions and 1 deletions

View File

@@ -65,6 +65,19 @@ notify_typing(const char * const from)
_notify(message, 10000, "Incoming message");
}
void
notify_invite(const char * const from, const char * const room)
{
GString *message = g_string_new("Room invite\nfrom: ");
g_string_append(message, from);
g_string_append(message, "\nto: ");
g_string_append(message, room);
_notify(message->str, 10000, "Incoming message");
g_string_free(message, FALSE);
}
void
notify_message(const char * const short_from)
{