diff options
Diffstat (limited to 'modules/pseudoclients/chanserv.cpp')
| -rw-r--r-- | modules/pseudoclients/chanserv.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 906aab6f3..4b652a51c 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -351,7 +351,8 @@ class ChanServCore : public Module void OnChannelSync(Channel *c) anope_override { - if (!c->HasMode("PERM") && (c->users.empty() || (c->users.size() == 1 && c->ci && c->ci->bi && *c->ci->bi == c->users.begin()->second->user))) + bool perm = c->HasMode("PERM") || (c->ci && c->ci->HasExt("PERSIST")); + if (!perm && (c->users.empty() || c->users.begin()->second->user->server == Me)) { chanserv.Hold(c); } |
