diff options
| author | Adam <Adam@anope.org> | 2011-08-09 22:18:31 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-09 22:18:31 -0400 |
| commit | ce92c9b21b99f6a2e2d2a79ce119233699c1a81a (patch) | |
| tree | 4d913a74b41832f035e01ecb931839a1865da252 /modules | |
| parent | b332fbd7a710150ba8a70f78c7836bc91de6317d (diff) | |
Remove +P from unregistered channels if persist is set
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/commands/cs_register.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } }; |
