mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Tidy prefs_do_chat_notify()
This commit is contained in:
parent
8342265607
commit
f8f9ad5197
@ -194,22 +194,16 @@ prefs_reset_room_trigger_ac(void)
|
||||
gboolean
|
||||
prefs_do_chat_notify(gboolean current_win)
|
||||
{
|
||||
gboolean notify_current = prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT);
|
||||
gboolean notify_window = FALSE;
|
||||
if (!current_win || (current_win && notify_current) ) {
|
||||
notify_window = TRUE;
|
||||
}
|
||||
if (!notify_window) {
|
||||
if (prefs_get_boolean(PREF_NOTIFY_CHAT) == FALSE) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean notify_message = prefs_get_boolean(PREF_NOTIFY_CHAT);
|
||||
if (notify_message) {
|
||||
} else {
|
||||
if ((current_win == FALSE) || ((current_win == TRUE) && prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT))) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
GList*
|
||||
prefs_message_get_triggers(const char *const message)
|
||||
|
Loading…
Reference in New Issue
Block a user