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

* Don't share cmdpass when loading the userfile

svn: 2041
Bryan Drewery 21 лет назад
Родитель
Сommit
042dd50c95
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/users.c

+ 2 - 1
src/users.c

@@ -718,7 +718,8 @@ int readuserfile(const char *file, struct userrec **ret)
 	      if (lasthand[1] == IGNORE_NAME[1])
 	      if (lasthand[1] == IGNORE_NAME[1])
 		restore_ignore(s);
 		restore_ignore(s);
               else if (lasthand[1] == CONFIG_NAME[1]) {
               else if (lasthand[1] == CONFIG_NAME[1]) {
-                set_cmd_pass(s, 1);
+                set_cmd_pass(s, 0);		/* no need to share here, if we have a new userfile
+						 * then leaf bots under us also get the new userfile */
               }
               }
 	      else
 	      else
 		restore_chanban(NULL, s);
 		restore_chanban(NULL, s);