diff options
author | Adam <Adam@anope.org> | 2013-05-08 20:53:28 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-08 20:53:28 -0400 |
commit | 7426b3b04a78bb8582eafa84895d2484e7d28d59 (patch) | |
tree | 7ceab098406f708b07cb5f61f995e6ef62d8df97 | |
parent | 735e234c2c7a984b01295f86045545ed8d9838ce (diff) |
Readd check for users.size() == 1 before holding channels
-rw-r--r-- | modules/pseudoclients/chanserv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 4b652a51c..9dc5abf0c 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -352,7 +352,7 @@ class ChanServCore : public Module void OnChannelSync(Channel *c) anope_override { bool perm = c->HasMode("PERM") || (c->ci && c->ci->HasExt("PERSIST")); - if (!perm && (c->users.empty() || c->users.begin()->second->user->server == Me)) + if (!perm && (c->users.empty() || (c->users.size() == 1 && c->users.begin()->second->user->server == Me))) { chanserv.Hold(c); } |