summaryrefslogtreecommitdiff
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-05 22:47:46 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-05 22:47:46 +0000
commitb6decc75f28e24522bfc4a3a74dbacce22d5cb02 (patch)
tree0c8a41bcf06ab31beebd385a02d93f301708203c /src/channels.cpp
parent3f647b9c1649d62c3a91da1723afec121f396ee5 (diff)
Change OnPostLocalTopicChange to be OnPostTopicChange, invoked for both remote and local events. Will be needed for some xline trickery.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11677 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index b53f780e6..e559f399f 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -104,9 +104,10 @@ int Channel::SetTopic(User *u, std::string &ntopic, bool forceset)
this->topicset = ServerInstance->Time();
- if (u && IS_LOCAL(u))
+ // XXX: this check for 'u' is probably pre-fake-user, and it fucking sucks anyway. we need to change this.
+ if (u)
{
- FOREACH_MOD(I_OnPostLocalTopicChange,OnPostLocalTopicChange(u, this, this->topic));
+ FOREACH_MOD(I_OnPostTopicChange,OnPostTopicChange(u, this, this->topic));
}
return CMD_SUCCESS;