Tidy notify_message()
This commit is contained in:
@@ -85,20 +85,8 @@ privwin_incoming_msg(ProfPrivateWin *privatewin, const char *const message, GDat
|
||||
beep();
|
||||
}
|
||||
|
||||
if (!notify) {
|
||||
jid_destroy(jidp);
|
||||
return;
|
||||
}
|
||||
|
||||
int ui_index = num;
|
||||
if (ui_index == 10) {
|
||||
ui_index = 0;
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_NOTIFY_CHAT_TEXT)) {
|
||||
notify_message(jidp->resourcepart, ui_index, message);
|
||||
} else {
|
||||
notify_message(jidp->resourcepart, ui_index, NULL);
|
||||
if (notify) {
|
||||
notify_message(jidp->resourcepart, num, message);
|
||||
}
|
||||
|
||||
jid_destroy(jidp);
|
||||
|
||||
Reference in New Issue
Block a user