1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 09:03:12 +02:00

Add/fix various checks on source user existing in the protocol modules

This commit is contained in:
Adam
2016-07-23 15:47:33 -04:00
parent b2e25db159
commit 647f8cd4e6
5 changed files with 26 additions and 6 deletions
+6 -1
View File
@@ -386,7 +386,12 @@ struct IRCDMessageNick : IRCDMessage
User::OnIntroduce(params[0], params[4], params[5], "", params[8], s, params[9], signon, params[3], "", na ? *na->nc : NULL);
}
else
source.GetUser()->ChangeNick(params[0]);
{
User *u = source.GetUser();
if (u)
u->ChangeNick(params[0]);
}
}
};