summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-26 11:39:35 -0500
committerAdam <Adam@anope.org>2013-12-26 11:39:35 -0500
commit2f29c1388cd8c4ded58bc2bf540463ba79ac9b30 (patch)
tree5f65416e28ea7d3e6ec2e10d2ec44ff35ee9c88c /modules
parentfc0e8264c0391edca9db85af64c33b6787b05c03 (diff)
Fix not setting the persist flag on newly registered channels when the permanent channel mode is set prior to registering or during registration
Diffstat (limited to 'modules')
-rw-r--r--modules/pseudoclients/chanserv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp
index 5a70aefd3..f33bee6c1 100644
--- a/modules/pseudoclients/chanserv.cpp
+++ b/modules/pseudoclients/chanserv.cpp
@@ -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");