From 2f29c1388cd8c4ded58bc2bf540463ba79ac9b30 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 26 Dec 2013 11:39:35 -0500 Subject: [PATCH] Fix not setting the persist flag on newly registered channels when the permanent channel mode is set prior to registering or during registration --- modules/pseudoclients/chanserv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");