From 3ad93a31c91ae096d5e53deb7dd64586fa935244 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 2 Jun 2011 14:59:34 -0400 Subject: Burst our channels with the uplink when we connect & fixed bug #1274 --- modules/protocol/unreal.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/protocol/unreal.cpp') 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(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 -- cgit