summaryrefslogtreecommitdiff
path: root/modules/commands/cs_register.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_register.cpp')
-rw-r--r--modules/commands/cs_register.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp
index 840db4b73..eb0f3de46 100644
--- a/modules/commands/cs_register.cpp
+++ b/modules/commands/cs_register.cpp
@@ -54,8 +54,12 @@ class CommandCSRegister : public Command
if (!chdesc.empty())
ci->desc = chdesc;
+ ci->mode_locks = def_mode_locks;
for (ChannelInfo::ModeList::iterator it = ci->mode_locks.begin(), it_end = ci->mode_locks.end(); it != it_end; ++it)
+ {
it->second.setter = u->nick;
+ it->second.ci = ci;
+ }
if (c && !c->topic.empty())
{