Add new command "/notify status" to enable/disable status messages,

such as users going on/offline or room joining/parting.
This commit is contained in:
Backalor
2013-01-14 18:51:37 +09:00
parent d827abddb7
commit 5356118147
4 changed files with 45 additions and 2 deletions

View File

@@ -410,6 +410,19 @@ prefs_set_splash(gboolean value)
_save_prefs();
}
gboolean
prefs_get_notify_status(void)
{
return g_key_file_get_boolean(prefs, "notification", "status", NULL);
}
void
prefs_set_notify_status(gboolean value)
{
g_key_file_set_boolean(prefs, "notification", "status", value);
_save_prefs();
}
static void
_save_prefs(void)
{