Parcourir la source

* Hublevel was being counted wrong

svn: 298
Bryan Drewery il y a 22 ans
Parent
commit
f89cbf69da
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/chanprog.c

+ 1 - 1
src/chanprog.c

@@ -478,6 +478,7 @@ void load_internal_users()
 	port = ln;
 	break;
       case 3:
+        hublevel++;		/* We must increment this even if it is already added */
 	if (!get_user_by_handle(userlist, hand)) {
 	  userlist = adduser(userlist, hand, "none", "-", USER_BOT | USER_OP);
 	  bi = user_malloc(sizeof(struct bot_addr));
@@ -485,7 +486,6 @@ void load_internal_users()
 	  strcpy(bi->address, ip);
 	  bi->telnet_port = atoi(port) ? atoi(port) : 0;
 	  bi->relay_port = bi->telnet_port;
-          hublevel++;
           bi->hublevel = hublevel;
 #ifdef HUB
 	  if ((!bi->hublevel) && (!strcmp(hand, botnetnick)))