1
0
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:
Adam
2015-09-17 20:35:46 -04:00
parent 2e65bd4012
commit 5692abb316
-7
View File
@@ -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)