Răsfoiți Sursa

* lock-threshold is now close-threshold

svn: 862
Bryan Drewery 22 ani în urmă
părinte
comite
c464e98098
3 a modificat fișierele cu 8 adăugiri și 7 ștergeri
  1. 1 0
      doc/UPDATES
  2. 3 3
      src/cfg.c
  3. 4 4
      src/mod/channels.mod/channels.c

+ 1 - 0
doc/UPDATES

@@ -20,6 +20,7 @@ This is a summary of ChangeLog basically.
 17.New cmd: addline, see .help addline for more info.
 18.CYGWIN support now.
 19.Bots now respond to /ctcp CHAT quicker
+20.lock-threshold config option is now close-threshold.
 
 1.1.3
 1.Fixed a very fatal bug with channel ctcps.

+ 3 - 3
src/cfg.c

@@ -416,8 +416,8 @@ void getin_describe(struct cfg_entry *cfgent, int idx)
     dprintf(idx, STR("lag-threshold is maximum acceptable server lag for the bot to send/honor requests\n"));
   else if (!strcmp(cfgent->name, STR("op-time-slack")))
     dprintf(idx, STR("op-time-slack is number of seconds a opcookies encoded time value can be off from the bots current time\n"));
-  else if (!strcmp(cfgent->name, STR("lock-threshold")))
-    dprintf(idx, STR("Format H:L. When at least H hubs but L or less leafs are linked, lock all channels\n"));
+  else if (!strcmp(cfgent->name, STR("close-threshold")))
+    dprintf(idx, STR("Format H:L. When at least H hubs but L or less leafs are linked, close all channels\n"));
   else if (!strcmp(cfgent->name, STR("kill-threshold")))
     dprintf(idx, STR("When more than kill-threshold bots have been killed/k-lined the last minute, channels are locked\n"));
   else if (!strcmp(cfgent->name, STR("fight-threshold")))
@@ -451,7 +451,7 @@ void getin_changed(struct cfg_entry *cfgent, char *oldval, int *valid)
     *valid = 1;
     return;
   }
-  if (!strcmp(cfgent->name, STR("lock-threshold"))) {
+  if (!strcmp(cfgent->name, STR("close-threshold"))) {
     int L, R;
     char *value = NULL;
 

+ 4 - 4
src/mod/channels.mod/channels.c

@@ -827,8 +827,8 @@ cmd_t channels_bot[] = {
 void channels_describe(struct cfg_entry *cfgent, int idx)
 {
 #ifdef HUB
-  if (!strcmp(cfgent->name, STR("lock-threshold"))) {
-    dprintf(idx, STR("Format H:L. When at least H hubs but L or less leafs are linked, lock all channels\n"));
+  if (!strcmp(cfgent->name, STR("close-threshold"))) {
+    dprintf(idx, STR("Format H:L. When at least H hubs but L or less leafs are linked, close all channels\n"));
   } else if (!strcmp(cfgent->name, STR("kill-threshold"))) {
     dprintf(idx, STR("When more than kill-threshold bots have been killed/k-lined the last minute, channels are locked\n"));
   } else {
@@ -845,7 +845,7 @@ void channels_changed(struct cfg_entry *cfgent, char *oldval, int *valid)
   if (!cfgent->gdata)
     return;
   *valid = 0;
-  if (!strcmp(cfgent->name, STR("lock-threshold"))) {
+  if (!strcmp(cfgent->name, STR("close-threshold"))) {
     int L, R;
     char *value = cfgent->gdata;
 
@@ -871,7 +871,7 @@ void channels_changed(struct cfg_entry *cfgent, char *oldval, int *valid)
 
 #ifdef S_AUTOLOCK
 struct cfg_entry CFG_LOCKTHRESHOLD = {
-	"lock-threshold", CFGF_GLOBAL, NULL, NULL,
+	"close-threshold", CFGF_GLOBAL, NULL, NULL,
 	channels_changed, NULL, channels_describe
 };