summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-03 05:46:40 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-03 05:46:40 +0000
commitbfa12b9fe4588e220ac565383a37f64fc7fec1b3 (patch)
tree2cdff98c1a7d00c5a83470dbfdfe9dd2794cfed0 /src
parenta8ed2b9244ab81f4073bac0070f1329d7d15a7f6 (diff)
BUILD : 1.7.8 (591) BUGS : 306 NOTES : Fixed LogUser message, normalizes the "realname" on nick change.
git-svn-id: svn://svn.anope.org/anope/trunk@592 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@441 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/users.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/users.c b/src/users.c
index 825b9d4fd..cd89bf0db 100644
--- a/src/users.c
+++ b/src/users.c
@@ -661,10 +661,14 @@ User *do_nick(const char *source, char *nick, char *username, char *host,
alog("debug: %s changes nick to %s", source, nick);
if (LogUsers) {
+ logrealname = normalizeBuffer(user->realname);
if (ircd->vhost) {
- alog("LOGUSERS: %s (%s@%s => %s) (%s) changed his nick to %s (%s).", user->nick, user->username, user->host, (user->vhost ? user->vhost : "(none)"), user->realname, nick, user->server->name);
+ alog("LOGUSERS: %s (%s@%s => %s) (%s) changed his nick to %s (%s).", user->nick, user->username, user->host, (user->vhost ? user->vhost : "(none)"), logrealname, nick, user->server->name);
} else {
- alog("LOGUSERS: %s (%s@%s) (%s) changed his nick to %s (%s).", user->nick, user->username, user->host, user->realname, nick, user->server->name);
+ alog("LOGUSERS: %s (%s@%s) (%s) changed his nick to %s (%s).", user->nick, user->username, user->host, logrealname, nick, user->server->name);
+ }
+ if (logrealname) {
+ free(logrealname);
}
}