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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user