diff options
author | Adam <Adam@anope.org> | 2015-01-28 22:57:15 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2015-01-28 22:57:15 -0500 |
commit | 845ca576b4c5a94f0a3ec12a4dd524a7d017155e (patch) | |
tree | 2636bc0ccdf94f957a955277dd89155de49360b6 /modules/protocol/bahamut.cpp | |
parent | 2264a206d262f07f6c6d91df867383d6413e0c3f (diff) |
More properly track topic change sources and allow users with access to change topics through topiclock
Diffstat (limited to 'modules/protocol/bahamut.cpp')
-rw-r--r-- | modules/protocol/bahamut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/protocol/bahamut.cpp b/modules/protocol/bahamut.cpp index a399ecece..4e193da01 100644 --- a/modules/protocol/bahamut.cpp +++ b/modules/protocol/bahamut.cpp @@ -461,11 +461,11 @@ struct IRCDMessageTopic : IRCDMessage { IRCDMessageTopic(Module *creator) : IRCDMessage(creator, "TOPIC", 4) { } - void Run(MessageSource &, const std::vector<Anope::string> ¶ms) anope_override + void Run(MessageSource &source, const std::vector<Anope::string> ¶ms) anope_override { Channel *c = Channel::Find(params[0]); if (c) - c->ChangeTopicInternal(params[1], params[3], Anope::string(params[2]).is_pos_number_only() ? convertTo<time_t>(params[2]) : Anope::CurTime); + c->ChangeTopicInternal(source.GetUser(), params[1], params[3], Anope::string(params[2]).is_pos_number_only() ? convertTo<time_t>(params[2]) : Anope::CurTime); } }; |