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/unreal.cpp | |
parent | 184b346166db9d40fcdc7bb6bf3a7929fdd48be9 (diff) |
Burst our channels with the uplink when we connect & fixed bug #1274
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index e07b97af0..9e7768ef3 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -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 |