diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp index a9928316d..6e5f6ec55 100644 --- a/modules/protocol/unreal4.cpp +++ b/modules/protocol/unreal4.cpp @@ -1279,7 +1279,7 @@ struct IRCDMessageUID : IRCDMessage User *u = User::OnIntroduce(nickname, username, hostname, vhost, ip, source.GetServer(), info, user_ts, umodes, uid, na ? *na->nc : NULL); - if (!chost.empty() && chost != u->GetCloakedHost()) + if (u && !chost.empty() && chost != u->GetCloakedHost()) u->SetCloakedHost(chost); } };