mirror of
https://github.com/anope/anope.git
synced 2026-07-09 11:13:13 +02:00
Fixed some issues and desyncs with creating empty permanent channels on startup & dropping empty channels
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user