diff --git a/src/users.cpp b/src/users.cpp index d9a6149cf..9f1cc8404 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -690,10 +690,12 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop { if (source.empty()) { - /* This is a new user; create a User structure for it. */ - Log(LOG_DEBUG) << "new user: " << nick; - Server *serv = Server::Find(server); + if (serv == NULL) + { + Log() << "User " << nick << " introduced with nonexistant server " << server << "!"; + return NULL; + } /* Allocate User structure and fill it in. */ dynamic_reference user = new User(nick, username, host, uid);