Explorar o código

Merge branch 'master' into next

* master:
  Fix crash when sending 'auth' after initiating auth, and no longer a valid user
Bryan Drewery %!s(int64=13) %!d(string=hai) anos
pai
achega
4fb141336f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mod/irc.mod/msgcmds.c

+ 1 - 1
src/mod/irc.mod/msgcmds.c

@@ -350,7 +350,7 @@ static int msg_auth(char *nick, char *host, struct userrec *u, char *par)
 
   Auth *auth = Auth::Find(host);
 
-  if (!auth || auth->Status() != AUTH_PASS)
+  if (!auth || auth->Status() != AUTH_PASS || !u)
     return BIND_RET_BREAK;
 
   pass = newsplit(&par);