summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-07-25 18:00:21 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-07-25 18:00:21 +0100
commit5fb0302b1fddbb4a0c71c2150f1d357e1097b4ee (patch)
tree81783143594a07f309a78fc65c7cd6aa93669148 /message.c
parent165cb674c689b1c779a357cd20467844c855e93e (diff)
Fix logging to the wrong file in the case that the bouncer's nick changed whilst running.
Diffstat (limited to 'message.c')
-rw-r--r--message.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/message.c b/message.c
index 4505ee1..ef16003 100644
--- a/message.c
+++ b/message.c
@@ -195,7 +195,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, settings->ircnick, settings->basedir, LOG_JOINPART);
+ logline(str, ircdstate->ircnick, settings->basedir, LOG_JOINPART);
}
free(prefixcopy);
@@ -229,7 +229,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, settings->ircnick, settings->basedir, LOG_JOINPART);
+ logline(str, ircdstate->ircnick, settings->basedir, LOG_JOINPART);
}
free(prefixcopy);
@@ -345,7 +345,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, settings->ircnick, settings->basedir, LOG_TOPIC);
+ logline(str, ircdstate->ircnick, settings->basedir, LOG_TOPIC);
}
free(topiccopy);
@@ -367,7 +367,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, settings->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(str, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -704,7 +704,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, settings->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(str, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -1024,7 +1024,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(outgoingmsg, settings->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(outgoingmsg, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -1133,7 +1133,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(fullmsg, settings->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(fullmsg, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
}
// If it's a CTCP VERSION response then only send to the server (CTCP requests are delimited with \1)