1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 02:46:39 +02:00

Fix not setting the persist flag on newly registered channels when the permanent channel mode is set prior to registering or during registration

This commit is contained in:
Adam
2013-12-26 11:39:35 -05:00
parent fc0e8264c0
commit 2f29c1388c
+1 -1
View File
@@ -425,7 +425,7 @@ class ChanServCore : public Module, public ChanServService
return;
/* Mark the channel as persistent */
if (ci->c->HasMode("PERM"))
persist->Unset(ci);
persist->Set(ci);
/* Persist may be in def cflags, set it here */
else if (persist->Get(ci))
ci->c->SetMode(NULL, "PERM");