From b4f675adcf9c52a5aaae36a2aeba962f2dc0d07a Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 7 Oct 2010 16:02:23 -0400 Subject: [PATCH] Do now show topics being set by UIDs on TS6 IRCds --- src/channels.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/channels.cpp b/src/channels.cpp index c39b7615b..b3a5a8d7f 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -1017,8 +1017,9 @@ Anope::string Channel::GetModes(bool complete, bool plus) void Channel::ChangeTopicInternal(const Anope::string &user, const Anope::string &newtopic, time_t ts) { + User *u = finduser(user); this->topic = newtopic; - this->topic_setter = user; + this->topic_setter = u ? u->nick : user; this->topic_time = ts; Log(LOG_DEBUG) << "Topic of " << this->name << " changed by " << user << " to " << newtopic; @@ -1033,8 +1034,9 @@ void Channel::ChangeTopicInternal(const Anope::string &user, const Anope::string void Channel::ChangeTopic(const Anope::string &user, const Anope::string &newtopic, time_t ts) { + User *u = finduser(user); this->topic = newtopic; - this->topic_setter = user; + this->topic_setter = u ? u->nick : user; this->topic_time = ts; ircdproto->SendTopic(whosends(this->ci), this);