1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:56:40 +02:00

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
This commit is contained in:
cyberbotx
2008-12-30 03:40:46 +00:00
parent 7c2d66cbfc
commit 7974747cc2
+2 -1
View File
@@ -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]);