diff options
author | Adam <Adam@anope.org> | 2011-09-19 18:35:40 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-19 18:35:40 -0400 |
commit | 43201ead9575a74e350710bc191f4ac67366aca7 (patch) | |
tree | e83dd66b689181548647d80e8d181eb13d190ba7 /modules/protocol/bahamut.cpp | |
parent | 7dce64e5400b180f1645c683614ecc3eee2bfddd (diff) |
Fixed /os reload doing weird things to service channels, and allow setting modes by clients on burst
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index 008c4dd32..2ae061009 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -162,14 +162,17 @@ class BahamutIRCdProto : public IRCDProto } /* JOIN - SJOIN */ - void SendJoin(User *user, Channel *c, const ChannelStatus *status) + void SendJoin(User *user, Channel *c, ChannelStatus *status) { send_cmd(user->nick, "SJOIN %ld %s", static_cast<long>(c->creation_time), c->name.c_str()); if (status) { + ChannelStatus cs = *status; + status->ClearFlags(); + BotInfo *setter = findbot(user->nick); for (unsigned i = 0; i < ModeManager::ChannelModes.size(); ++i) - if (status->HasFlag(ModeManager::ChannelModes[i]->Name)) + if (cs.HasFlag(ModeManager::ChannelModes[i]->Name)) c->SetMode(setter, ModeManager::ChannelModes[i], user->nick, false); } } |