From 69dfc729e99f45f16cab37f81b9f09a659d99a24 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 17 Nov 2011 12:46:18 -0500 Subject: Fixed storing mode locks --- modules/commands/cs_register.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/commands/cs_register.cpp') 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()) { -- cgit