summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}
}
}