diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-30 03:40:46 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-12-30 03:40:46 +0000 |
commit | 7974747cc2718fcc4fb6825b6853ca459ffaefef (patch) | |
tree | fda282c3d90105ae1d072af0fbeecf7ff62f02bf | |
parent | 7c2d66cbfc53d1bfb321a421724545a8faa0d417 (diff) |
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
-rw-r--r-- | src/protocol/inspircd12.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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]); |