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>2004-10-30 03:59:03 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-10-30 03:59:03 +0000
commitda0d4d0498cd7f3f764118ce2a2f97f9c364fe93 (patch)
tree2694ecd49ef2fdd36cb65c8a6f2b4131b924c89c /src
parent3ea6c80b9b15d50026ad33938e505b9acf8e1536 (diff)
BUILD : 1.7.5 (432) BUGS : 199 NOTES : 1. fixed unused var from previous commit, 2. normalized the realname when doing LogUsers (199)
git-svn-id: svn://svn.anope.org/anope/trunk@432 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@287 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c1
-rw-r--r--src/users.c14
2 files changed, 7 insertions, 8 deletions
diff --git a/src/botserv.c b/src/botserv.c
index b376ed97f..f7507ffef 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -2434,7 +2434,6 @@ static int do_act(User * u)
char *chan = strtok(NULL, " ");
char *text = strtok(NULL, "");
- char tmpbuf[BUFSIZE];
if (!chan || !text)
syntax_error(s_BotServ, u, "ACT", BOT_ACT_SYNTAX);
diff --git a/src/users.c b/src/users.c
index 2f102eef0..b824271bb 100644
--- a/src/users.c
+++ b/src/users.c
@@ -201,12 +201,12 @@ void delete_user(User * user)
if (ircd->vhost) {
alog("LOGUSERS: %s (%s@%s => %s) (%s) left the network (%s).",
user->nick, user->username, user->host,
- (user->vhost ? user->vhost : "(none)"), user->realname,
- user->server->name);
+ (user->vhost ? user->vhost : "(none)"),
+ normalizeBuffer(user->realname), user->server->name);
} else {
alog("LOGUSERS: %s (%s@%s) (%s) left the network (%s).",
user->nick, user->username, user->host,
- user->realname, user->server->name);
+ normalizeBuffer(user->realname), user->server->name);
}
}
@@ -420,15 +420,15 @@ User *do_nick(const char *source, char *nick, char *username, char *host,
if (ircd->nickvhost) {
if (ircd->nickip) {
- alog("LOGUSERS: %s (%s@%s => %s) (%s) [%s] connected to the network (%s).", nick, username, host, vhost, realname, ipbuf, server);
+ alog("LOGUSERS: %s (%s@%s => %s) (%s) [%s] connected to the network (%s).", nick, username, host, (vhost ? vhost : "none"), normalizeBuffer(realname), ipbuf, server);
} else {
- alog("LOGUSERS: %s (%s@%s => %s) (%s) connected to the network (%s).", nick, username, host, vhost, realname, server);
+ alog("LOGUSERS: %s (%s@%s => %s) (%s) connected to the network (%s).", nick, username, host, (vhost ? vhost : "none"), normalizeBuffer(realname), server);
}
} else {
if (ircd->nickip) {
- alog("LOGUSERS: %s (%s@%s) (%s) [%s] connected to the network (%s).", nick, username, host, realname, ipbuf, server);
+ alog("LOGUSERS: %s (%s@%s) (%s) [%s] connected to the network (%s).", nick, username, host, normalizeBuffer(realname), ipbuf, server);
} else {
- alog("LOGUSERS: %s (%s@%s) (%s) connected to the network (%s).", nick, username, host, realname, server);
+ alog("LOGUSERS: %s (%s@%s) (%s) connected to the network (%s).", nick, username, host, normalizeBuffer(realname), server);
}
}
}