Просмотр исходного кода

* Port [3648] to 1.2.15 from trunk
* Hide the debugging channels in the binary


svn: 3649

Bryan Drewery 18 лет назад
Родитель
Сommit
cdeadce934
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      src/chanprog.c

+ 5 - 4
src/chanprog.c

@@ -749,10 +749,11 @@ bool bot_shouldjoin(struct userrec* u, struct flag_record* fr, struct chanset_t*
   /* If the bot is restarting (and hasn't finished getting the userfile for the first time) DO NOT JOIN channels - breaks +B/+backup */
   /* If the bot is restarting (and hasn't finished getting the userfile for the first time) DO NOT JOIN channels - breaks +B/+backup */
   if (restarting || loading) return 0;
   if (restarting || loading) return 0;
 
 
-  if (!strncmp(u->handle, "wtest", 5)) {
-    if (!strcmp(chan->dname, "#skynet") || 
-        !strcmp(chan->dname, "#bryan") || 
-        !strcmp(chan->dname, "#wraith"))
+  /* Force debugging bots to only join 3 channels */
+  if (!strncmp(u->handle, STR("wtest"), 5)) {
+    if (!strcmp(chan->dname, STR("#skynet")) || 
+        !strcmp(chan->dname, STR("#bryan")) || 
+        !strcmp(chan->dname, STR("#wraith")))
       return 1;
       return 1;
     else
     else
       return 0;
       return 0;