1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 00:06:38 +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
+5 -2
View File
@@ -280,7 +280,7 @@ struct IRCDMessageChaninfo : IRCDMessage
struct IRCDMessageJoin : Message::Join
{
IRCDMessageJoin(Module *creator) : Message::Join(creator, "JOIN") { }
IRCDMessageJoin(Module *creator) : Message::Join(creator, "JOIN") { SetFlag(IRCDMESSAGE_REQUIRE_USER); }
/*
* <@po||ux> DukeP: RFC 2813, 4.2.1: the JOIN command on server-server links
@@ -440,8 +440,11 @@ struct IRCDMessageNick : IRCDMessage
{
if (params.size() == 1)
{
User *u = source.GetUser();
// we have a nickchange
source.GetUser()->ChangeNick(params[0]);
if (u)
u->ChangeNick(params[0]);
}
else if (params.size() == 7)
{