mirror of
https://github.com/anope/anope.git
synced 2026-07-05 05:33:13 +02:00
Fixed some stuff spotted by Cronus, made db_old convert ACCESS_INVALID levels to ACCESS_FOUNDER, fix cs_enforce +R from an earlier commit, fixed ChangeModeInternal TS checking when IRCds don't send TS on mode
This commit is contained in:
@@ -255,7 +255,7 @@ struct IRCDMessageChaninfo : IRCDMessage
|
||||
c->ChangeTopicInternal(source.GetName(), params[4], Anope::CurTime);
|
||||
}
|
||||
|
||||
c->SetModesInternal(source, modes, c->creation_time, true);
|
||||
c->SetModesInternal(source, modes);
|
||||
return true;
|
||||
}
|
||||
};
|
||||
@@ -302,7 +302,7 @@ struct IRCDMessageJoin : IRCDMessage
|
||||
chan->JoinUser(user);
|
||||
|
||||
if (!modes.empty())
|
||||
chan->SetModesInternal(source, modes, chan->creation_time);
|
||||
chan->SetModesInternal(source, modes);
|
||||
|
||||
/* Set the proper modes on the user */
|
||||
chan_set_correct_modes(user, chan, 1, true);
|
||||
@@ -353,7 +353,7 @@ struct IRCDMessageMode : IRCDMessage
|
||||
Channel *c = findchan(params[0]);
|
||||
|
||||
if (c)
|
||||
c->SetModesInternal(source, modes, c->creation_time);
|
||||
c->SetModesInternal(source, modes);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user