mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
make a setting to disable account-notify
This commit is contained in:
parent
44d480ca99
commit
e20900a7ca
1 changed files with 4 additions and 0 deletions
|
|
@ -471,6 +471,9 @@ static void sig_message_account_changed(SERVER_REC *server, const char *nick,
|
||||||
gboolean logged_in;
|
gboolean logged_in;
|
||||||
int txt;
|
int txt;
|
||||||
|
|
||||||
|
if (!settings_get_bool("show_account_notify"))
|
||||||
|
return;
|
||||||
|
|
||||||
logged_in = g_strcmp0("*", account) != 0;
|
logged_in = g_strcmp0("*", account) != 0;
|
||||||
txt = logged_in ? TXT_LOGGED_IN : TXT_LOGGED_OUT;
|
txt = logged_in ? TXT_LOGGED_IN : TXT_LOGGED_OUT;
|
||||||
|
|
||||||
|
|
@ -784,6 +787,7 @@ void fe_messages_init(void)
|
||||||
settings_add_bool("lookandfeel", "show_quit_once", FALSE);
|
settings_add_bool("lookandfeel", "show_quit_once", FALSE);
|
||||||
settings_add_bool("lookandfeel", "show_own_nickchange_once", FALSE);
|
settings_add_bool("lookandfeel", "show_own_nickchange_once", FALSE);
|
||||||
settings_add_bool("lookandfeel", "away_notify_public", FALSE);
|
settings_add_bool("lookandfeel", "away_notify_public", FALSE);
|
||||||
|
settings_add_bool("lookandfeel", "show_account_notify", FALSE);
|
||||||
|
|
||||||
signal_add_last("message public", (SIGNAL_FUNC) sig_message_public);
|
signal_add_last("message public", (SIGNAL_FUNC) sig_message_public);
|
||||||
signal_add_last("message private", (SIGNAL_FUNC) sig_message_private);
|
signal_add_last("message private", (SIGNAL_FUNC) sig_message_private);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue