From 7974747cc2718fcc4fb6825b6853ca459ffaefef Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 30 Dec 2008 03:40:46 +0000 Subject: [PATCH] Fix bug 977, topics should show the nick of the user instead of UID now. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1888 5417fbe8-f217-4b02-8779-1006273d7864 --- src/protocol/inspircd12.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/protocol/inspircd12.cpp b/src/protocol/inspircd12.cpp index bef8d113c..77da394b8 100644 --- a/src/protocol/inspircd12.cpp +++ b/src/protocol/inspircd12.cpp @@ -922,6 +922,7 @@ int anope_event_topic(const char *source, int ac, const char **av) { Channel *c = findchan(av[0]); time_t topic_time = time(NULL); + User *u = find_byuid(source); if (!c) { if (debug) { @@ -941,7 +942,7 @@ int anope_event_topic(const char *source, int ac, const char **av) if (ac > 1 && *av[1]) c->topic = sstrdup(av[1]); - strscpy(c->topic_setter, source, sizeof(c->topic_setter)); + strscpy(c->topic_setter, u ? u->nick : source, sizeof(c->topic_setter)); c->topic_time = topic_time; record_topic(av[0]);