mirror of
https://github.com/anope/anope.git
synced 2026-06-30 21:26:37 +02:00
Burst our channels with the uplink when we connect & fixed bug #1274
This commit is contained in:
@@ -172,13 +172,16 @@ class UnrealIRCdProto : public IRCDProto
|
||||
}
|
||||
|
||||
/* JOIN */
|
||||
void SendJoin(BotInfo *user, Channel *c, const ChannelStatus *status)
|
||||
void SendJoin(User *user, Channel *c, const 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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
/* unsqline
|
||||
|
||||
Reference in New Issue
Block a user