From 9e01480253fa40b822e0488be24a2c08bce500e2 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 7 Oct 2016 19:04:40 -0400 Subject: Add/fix various checks on source user existing in the protocol modules --- modules/protocol/unreal.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/protocol/unreal.cpp') diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 0f97da8ae..1eb40f4c3 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -821,7 +821,12 @@ struct IRCDMessageNick : IRCDMessage User::OnIntroduce(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7], "", na ? na->GetAccount() : NULL); } else - source.GetUser()->ChangeNick(params[0]); + { + User *u = source.GetUser(); + + if (u) + u->ChangeNick(params[0]); + } } }; -- cgit