mirror of
https://github.com/anope/anope.git
synced 2026-06-12 19:14:47 +02:00
Don't prevent channel destruction because persist is set. Perm mode/a bot should be assigned anyway which will prevent it. Fixes deleting bots out of perm channels causing desyncs
This commit is contained in:
@@ -1297,13 +1297,6 @@ class CSSet : public Module
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
EventReturn OnCheckDelete(Channel *c) anope_override
|
||||
{
|
||||
if (c->ci && persist.HasExt(c->ci))
|
||||
return EVENT_STOP;
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
void OnJoinChannel(User *u, Channel *c) anope_override
|
||||
{
|
||||
if (persist_lower_ts && c->ci && persist.HasExt(c->ci) && c->creation_time > c->ci->time_registered)
|
||||
|
||||
Reference in New Issue
Block a user