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

Only remove all entries if auth_total > 0

svn: 43
Bryan Drewery 23 лет назад
Родитель
Сommit
6a48a26055
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/mod/server.mod/servmsg.c

+ 1 - 1
src/mod/server.mod/servmsg.c

@@ -1012,7 +1012,7 @@ static void eof_server(int idx)
 {
 {
   int i = 0;
   int i = 0;
   putlog(LOG_SERV, "*", "%s %s", IRC_DISCONNECTED, dcc[idx].host);
   putlog(LOG_SERV, "*", "%s %s", IRC_DISCONNECTED, dcc[idx].host);
-  if (ischanhub()) {
+  if (ischanhub() && auth_total > 0) {
     putlog(LOG_MISC, "*", "Removing %d auth entries.", auth_total);
     putlog(LOG_MISC, "*", "Removing %d auth entries.", auth_total);
     for (i = 0; i < auth_total; i++)
     for (i = 0; i < auth_total; i++)
       removeauth(i);  
       removeauth(i);