Explorar o código

* Give an hourly warning if link_cleartext is enabled

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
a66b2d28c8
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      src/main.c

+ 5 - 1
src/main.c

@@ -611,8 +611,12 @@ static void core_hourly()
 
 static void core_halfhourly()
 {
-  if (conf.bot->hub)
+  if (conf.bot->hub) {
     write_userfile(-1);
+
+    if (link_cleartext)
+      putlog(LOG_WARN, "*", STR("'link_cleartext' currently enabled. This is a security risk. Disable with '%sset link_cleartext 0'"), settings.dcc_prefix);
+  }
 }
 
 static void startup_checks(int hack) {