From b6decc75f28e24522bfc4a3a74dbacce22d5cb02 Mon Sep 17 00:00:00 2001 From: w00t Date: Sat, 5 Sep 2009 22:47:46 +0000 Subject: 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 --- src/channels.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/channels.cpp') 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; -- cgit v1.3.1-10-gc9f91