Ver Fonte

svn: 1248

Bryan Drewery há 22 anos atrás
pai
commit
e491bb786a
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/cmds.c

+ 1 - 1
src/cmds.c

@@ -2248,7 +2248,7 @@ int check_dcc_attrs(struct userrec *u, flag_t oatr)
 
   for (i = 0; i < dcc_total; i++) {
 #ifdef LEAF
-    if (dcc[idx].type && dcc[idx].type == &DCC_CHAT && !ischanhub() && u == conf.bot->u) {
+    if (dcc[i].type && dcc[i].type == &DCC_CHAT && !ischanhub() && u == conf.bot->u) {
       dprintf(i, "I am no longer a chathub..\n\n");
       do_boot(i, conf.bot->nick, "I am no longer a chathub.\n\n");
     }