summaryrefslogtreecommitdiff
path: root/modules/commands/cs_register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-25 19:01:01 -0400
committerAdam <Adam@anope.org>2011-08-25 19:01:01 -0400
commit8702031bcd63032572b36fa51457b3ea4f73c158 (patch)
tree5a40997a3c71ad34c3a91e3899c03f2a5b7341f0 /modules/commands/cs_register.cpp
parent6dacec22a43940b24daa8279295b99a012de2d23 (diff)
Set the creator of default mlocks to the channel founder when a channel is registered
Diffstat (limited to 'modules/commands/cs_register.cpp')
-rw-r--r--modules/commands/cs_register.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp
index 01aa5f18d..632cbced7 100644
--- a/modules/commands/cs_register.cpp
+++ b/modules/commands/cs_register.cpp
@@ -54,6 +54,9 @@ class CommandCSRegister : public Command
if (!chdesc.empty())
ci->desc = chdesc;
+ for (ChannelInfo::ModeList::iterator it = ci->mode_locks.begin(), it_end = ci->mode_locks.end(); it != it_end; ++it)
+ it->second.setter = u->nick;
+
if (c && !c->topic.empty())
{
ci->last_topic = c->topic;