summaryrefslogtreecommitdiff
path: root/modules/core/cs_set_persist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_set_persist.cpp')
-rw-r--r--modules/core/cs_set_persist.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/core/cs_set_persist.cpp b/modules/core/cs_set_persist.cpp
index bee71f95e..1a567ef83 100644
--- a/modules/core/cs_set_persist.cpp
+++ b/modules/core/cs_set_persist.cpp
@@ -61,7 +61,7 @@ class CommandCSSetPersist : public Command
if (ci->c && !ci->c->HasMode(CMODE_PERM))
ci->c->SetMode(NULL, cm);
/* Add it to the channels mlock */
- ci->SetMLock(CMODE_PERM, true);
+ ci->SetMLock(cm, true);
}
}
@@ -81,7 +81,7 @@ class CommandCSSetPersist : public Command
if (ci->c && ci->c->HasMode(CMODE_PERM))
ci->c->RemoveMode(NULL, cm);
/* Remove from mlock */
- ci->RemoveMLock(CMODE_PERM);
+ ci->RemoveMLock(cm);
}
/* No channel mode, no BotServ, but using ChanServ as the botserv bot