1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 15:16:38 +02:00

Burst our channels with the uplink when we connect & fixed bug #1274

This commit is contained in:
Adam
2011-06-02 14:59:34 -04:00
parent 184b346166
commit 3ad93a31c9
10 changed files with 120 additions and 100 deletions
+5 -2
View File
@@ -122,13 +122,16 @@ class PlexusProto : public IRCDProto
send_cmd(Config->Numeric, "UNRESV * %s", x->Mask.c_str());
}
void SendJoin(BotInfo *user, Channel *c, const ChannelStatus *status)
void SendJoin(User *user, Channel *c, const ChannelStatus *status)
{
send_cmd(Config->Numeric, "SJOIN %ld %s +%s :%s", static_cast<long>(c->creation_time), c->name.c_str(), c->GetModes(true, true).c_str(), user->GetUID().c_str());
if (status)
{
BotInfo *setter = findbot(user->nick);
for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i)
if (status->HasFlag(ModeManager::ChannelModes[i]->Name))
c->SetMode(user, ModeManager::ChannelModes[i], user->nick, false);
c->SetMode(setter, ModeManager::ChannelModes[i], user->nick, false);
}
}
void SendAkill(User *, const XLine *x)