Added desktop notification option for subscription requests

closes #166
This commit is contained in:
James Booth
2013-04-27 23:46:49 +01:00
parent 04c6f2d7b0
commit 441422ddc8
6 changed files with 63 additions and 1 deletions

View File

@@ -169,6 +169,9 @@ prof_handle_subscription(const char *from, jabber_subscr_t type)
log_info("Received authorization request from %s", from);
ui_print_system_msg_from_recipient(from, "Authorization request, type '/sub allow' to accept or '/sub deny' to reject");
ui_current_page_off();
if (prefs_get_boolean(PREF_NOTIFY_SUB)) {
notify_subscription(from);
}
break;
case PRESENCE_SUBSCRIBED:
cons_show("Subscription received from %s", from);