1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 02:06:39 +02:00

Fixed /os reload doing weird things to service channels, and allow setting modes by clients on burst

This commit is contained in:
Adam
2011-09-19 18:35:40 -04:00
parent 7dce64e540
commit 43201ead95
11 changed files with 50 additions and 26 deletions
+5 -2
View File
@@ -165,14 +165,17 @@ class UnrealIRCdProto : public IRCDProto
}
/* JOIN */
void SendJoin(User *user, Channel *c, const ChannelStatus *status)
void SendJoin(User *user, Channel *c, ChannelStatus *status)
{
send_cmd(Config->ServerName, "~ %ld %s :%s", static_cast<long>(c->creation_time), c->name.c_str(), user->nick.c_str());
if (status)
{
ChannelStatus cs = *status;
status->ClearFlags();
BotInfo *setter = findbot(user->nick);
for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i)
if (status->HasFlag(ModeManager::ChannelModes[i]->Name))
if (cs.HasFlag(ModeManager::ChannelModes[i]->Name))
c->SetMode(setter, ModeManager::ChannelModes[i], user->nick, false);
}
}