From 56b158ea430ace114db1a44558923b2641b44fea Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 20 May 2016 21:18:34 -0400 Subject: Fix handling nick introduction collisions on unreal4 --- modules/protocol/unreal4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/protocol/unreal4.cpp') 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); } }; -- cgit