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
|
gboolean
|
||||||
prefs_do_chat_notify(gboolean current_win)
|
prefs_do_chat_notify(gboolean current_win)
|
||||||
{
|
{
|
||||||
gboolean notify_current = prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT);
|
if (prefs_get_boolean(PREF_NOTIFY_CHAT) == FALSE) {
|
||||||
gboolean notify_window = FALSE;
|
|
||||||
if (!current_win || (current_win && notify_current) ) {
|
|
||||||
notify_window = TRUE;
|
|
||||||
}
|
|
||||||
if (!notify_window) {
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
} else {
|
||||||
|
if ((current_win == FALSE) || ((current_win == TRUE) && prefs_get_boolean(PREF_NOTIFY_CHAT_CURRENT))) {
|
||||||
gboolean notify_message = prefs_get_boolean(PREF_NOTIFY_CHAT);
|
|
||||||
if (notify_message) {
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
} else {
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
GList*
|
GList*
|
||||||
prefs_message_get_triggers(const char *const message)
|
prefs_message_get_triggers(const char *const message)
|
||||||
|
Loading…
Reference in New Issue
Block a user