summaryrefslogtreecommitdiff
path: root/modules/protocol/unreal.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-06-02 14:59:34 -0400
committerAdam <Adam@anope.org>2011-06-02 14:59:34 -0400
commit3ad93a31c91ae096d5e53deb7dd64586fa935244 (patch)
tree46a53929245681c142cb58c25d20754ac1f15fc8 /modules/protocol/unreal.cpp
parent184b346166db9d40fcdc7bb6bf3a7929fdd48be9 (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.cpp7
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