Browse Source

Remove obsoleted debug code now that there are groups

Bryan Drewery 14 years ago
parent
commit
20463a9cbd
1 changed files with 0 additions and 12 deletions
  1. 0 12
      src/chanprog.c

+ 0 - 12
src/chanprog.c

@@ -753,18 +753,6 @@ bool bot_shouldjoin(struct userrec* u, struct flag_record* fr, const struct chan
   // No user record, can't make any safe assumptions really
   if (!u) return 0;
 
-#ifdef DEBUG
-  /* Force debugging bots to only join 3 channels */
-  if (!strncmp(u->handle, "wtest", 5)) {
-    if (!strcmp(chan->dname, "#skynet") || 
-        !strcmp(chan->dname, "#bryan") || 
-        !strcmp(chan->dname, "#wraith-devel"))
-      return 1;
-    else
-      return 0;
-  }
-#endif
-
   // Is this bot in the groups that this channel has?
   const char *botgroups = u == conf.bot->u ? groups : var_get_bot_data(u, "groups", true);
   bd::Array<bd::String> my_groupsArray(bd::String(botgroups).split(','));