1
0
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:
Adam
2013-05-08 20:26:45 -04:00
parent 735f0ba6cf
commit 735e234c2c
11 changed files with 56 additions and 49 deletions
+2 -1
View File
@@ -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);
}