diff options
| author | Adam <Adam@anope.org> | 2015-06-29 19:35:57 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2015-06-29 19:35:57 -0400 |
| commit | 02ed9a9725c40b57df965c4a13579bafebef2af3 (patch) | |
| tree | d553873991f3b872dc6da855beeb6f3c0c88eb3c /modules/pseudoclients | |
| parent | 074f1637508d76e2c21e9d698f265a0b4291f3b0 (diff) | |
#1649 don't update keepmodes during inhbait
Diffstat (limited to 'modules/pseudoclients')
| -rw-r--r-- | modules/pseudoclients/chanserv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 41a62d7b4..0ceeded25 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -66,12 +66,12 @@ class ChanServCore : public Module, public ChanServService if (!c) return; - inhabit.Unset(c); - /* In the event we don't part */ c->RemoveMode(NULL, "SECRET"); c->RemoveMode(NULL, "INVITE"); + inhabit.Unset(c); /* now we're done changing modes, unset inhabit */ + if (!c->ci || !c->ci->bi) { if (ChanServ) |
