Browse Source

* Give an hourly warning if link_cleartext is enabled

Bryan Drewery 16 years ago
parent
commit
a66b2d28c8
1 changed files with 5 additions and 1 deletions
  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) {