diff options
author | Adam <Adam@anope.org> | 2011-06-02 14:59:34 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-06-02 14:59:34 -0400 |
commit | 3ad93a31c91ae096d5e53deb7dd64586fa935244 (patch) | |
tree | 46a53929245681c142cb58c25d20754ac1f15fc8 /modules/protocol/plexus.cpp | |
parent | 184b346166db9d40fcdc7bb6bf3a7929fdd48be9 (diff) |
Burst our channels with the uplink when we connect & fixed bug #1274
Diffstat (limited to 'modules/protocol/plexus.cpp')
-rw-r--r-- | modules/protocol/plexus.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/protocol/plexus.cpp b/modules/protocol/plexus.cpp index 5e6c67781..c83aa786e 100644 --- a/modules/protocol/plexus.cpp +++ b/modules/protocol/plexus.cpp @@ -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) |