Parcourir la source

Only remove all entries if auth_total > 0

svn: 43
Bryan Drewery il y a 23 ans
Parent
commit
6a48a26055
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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;
   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);
     for (i = 0; i < auth_total; i++)
       removeauth(i);