Explorar o código

Only remove all entries if auth_total > 0

svn: 43
Bryan Drewery %!s(int64=23) %!d(string=hai) anos
pai
achega
6a48a26055
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);