mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-24 04:36:21 +00:00
Add /privacy logging command
Add ability to completely turn logs off, Needed since `/logging` and `/history` didn't stop history logging in the DB, only in files. Command might break something on usage, hence it was primarily introduced for privacy geeks. Privacy command discussion #1836
This commit is contained in:
@@ -222,9 +222,13 @@ chat_log_msg_in(ProfMessage* message)
|
||||
}
|
||||
|
||||
static void
|
||||
_chat_log_chat(const char* const login, const char* const other, const char* const msg,
|
||||
_chat_log_chat(const char* const login, const char* const other, const char* msg,
|
||||
chat_log_direction_t direction, GDateTime* timestamp, const char* const resourcepart)
|
||||
{
|
||||
auto_gchar gchar* pref_dblog = prefs_get_string(PREF_DBLOG);
|
||||
if (g_strcmp0(pref_dblog, "redact") == 0) {
|
||||
msg = "[REDACTED]";
|
||||
}
|
||||
char* other_name;
|
||||
GString* other_str = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user