diff options
author | Adam <Adam@anope.org> | 2016-10-07 19:04:40 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-07 19:04:40 -0400 |
commit | 9e01480253fa40b822e0488be24a2c08bce500e2 (patch) | |
tree | c452fd4dfbedf3ed8fd97f34d9ae6e01b2e4564b /modules/protocol/unreal.cpp | |
parent | 454be59a5d0cb33585f58e73f15a758cf5f67327 (diff) |
Add/fix various checks on source user existing in the protocol modules
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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]); + } } }; |