diff options
author | Adam <Adam@anope.org> | 2016-07-23 15:47:33 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-07-23 15:47:33 -0400 |
commit | 647f8cd4e639e230d80046ee5967f88a72bdee4a (patch) | |
tree | 9e5f2152cc8b71dbc350001647a04c4a99e89d0a /modules/protocol/unreal4.cpp | |
parent | b2e25db1593e7e8a6490dd42ca7e9c93bf71552c (diff) |
Add/fix various checks on source user existing in the protocol modules
Diffstat (limited to 'modules/protocol/unreal4.cpp')
-rw-r--r-- | modules/protocol/unreal4.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/protocol/unreal4.cpp b/modules/protocol/unreal4.cpp index 6e5f6ec55..b98de5ff2 100644 --- a/modules/protocol/unreal4.cpp +++ b/modules/protocol/unreal4.cpp @@ -966,7 +966,11 @@ struct IRCDMessageNick : IRCDMessage User::OnIntroduce(params[0], params[3], params[4], vhost, ip, s, params[10], user_ts, params[7], "", na ? *na->nc : NULL); } else - source.GetUser()->ChangeNick(params[0]); + { + User *u = source.GetUser(); + if (u) + u->ChangeNick(params[0]); + } } }; |