diff options
author | Adam <Adam@anope.org> | 2012-02-14 19:03:09 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-14 19:03:09 -0500 |
commit | db59f1a70f75d26a94df73492dc4aa462546f3d9 (patch) | |
tree | 1a6490f6782bfdf77e2822b157abf6d4a470347c /src/modes.cpp | |
parent | a9772cde21407c89abd161d51aff45267f87b1fb (diff) |
Fixed detecting when to set +r and fixed crash on shutdown introduced by the last commit
Diffstat (limited to 'src/modes.cpp')
-rw-r--r-- | src/modes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modes.cpp b/src/modes.cpp index 0b61440a5..580c9f2d7 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -473,8 +473,8 @@ void ModeManager::StackerAddInternal(BotInfo *bi, Base *Object, Mode *mode, bool else if (Type == ST_USER) s->bi = NULL; - static ModePipe mpipe; - mpipe.Notify(); + static ModePipe *mpipe = new ModePipe(); + mpipe->Notify(); } /** Add a user mode to Anope |