summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-09-19 18:35:40 -0400
committerAdam <Adam@anope.org>2011-09-19 18:35:40 -0400
commit43201ead9575a74e350710bc191f4ac67366aca7 (patch)
treee83dd66b689181548647d80e8d181eb13d190ba7 /src/modes.cpp
parent7dce64e5400b180f1645c683614ecc3eee2bfddd (diff)
Fixed /os reload doing weird things to service channels, and allow setting modes by clients on burst
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index c3e52e036..4fc5d6483 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -350,9 +350,6 @@ void StackerInfo::AddMode(Mode *mode, bool Set, const Anope::string &Param)
*/
void ModeManager::ModePipe::OnNotify()
{
- if (!Me || !Me->IsSynced())
- return;
-
ModeManager::ProcessModes();
}
@@ -371,11 +368,6 @@ StackerInfo *ModeManager::GetInfo(Base *Item)
StackerInfo *s = new StackerInfo();
StackerObjects.push_back(std::make_pair(Item, s));
-
- if (mpipe == NULL)
- mpipe = new ModePipe();
- mpipe->Notify();
-
return s;
}
@@ -474,6 +466,10 @@ void ModeManager::StackerAddInternal(BotInfo *bi, Base *Object, Mode *mode, bool
s->bi = debug_cast<Channel *>(Object)->ci->WhoSends();
else if (Type == ST_USER)
s->bi = NULL;
+
+ if (mpipe == NULL)
+ mpipe = new ModePipe();
+ mpipe->Notify();
}
/** Add a user mode to Anope