From ce92c9b21b99f6a2e2d2a79ce119233699c1a81a Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 9 Aug 2011 22:18:31 -0400 Subject: Remove +P from unregistered channels if persist is set --- modules/commands/cs_register.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp index 41dfac063..01aa5f18d 100644 --- a/modules/commands/cs_register.cpp +++ b/modules/commands/cs_register.cpp @@ -187,6 +187,8 @@ class CSRegister : public Module { if (ci->c && ci->c->HasMode(CMODE_REGISTERED)) ci->c->RemoveMode(NULL, CMODE_REGISTERED, "", false); + if (ci->c && ci->HasFlag(CI_PERSIST)) + ci->c->RemoveMode(NULL, CMODE_PERM, "", false); } }; -- cgit