summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-12 21:55:07 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-12 21:55:07 +0100
commit5a3a07a9e64f4677290062712f9e9a3299061971 (patch)
tree7ed9bd9b46ba1207025331269b2263ea06b04ea4 /message.c
parent55b6f72223675c226238a5110d674a852e9922d3 (diff)
Log server messages to file named <ircdname>.log.
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 3036eb2..5cfff91 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, ircdstate->ircnick, settings->basedir, LOG_JOINPART);
+ logline(str, ircdstate, 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, ircdstate->ircnick, settings->basedir, LOG_JOINPART);
+ logline(str, ircdstate, 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, ircdstate->ircnick, settings->basedir, LOG_TOPIC);
+ logline(str, ircdstate, 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, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(str, ircdstate, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -717,7 +717,7 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(str, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(str, ircdstate, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -1039,7 +1039,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(outgoingmsg, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(outgoingmsg, ircdstate, settings->basedir, LOG_PRIVMSG);
}
return 1;
@@ -1148,7 +1148,7 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int
// Write to normal log if logging enabled
if (settings->logging) {
- logline(fullmsg, ircdstate->ircnick, settings->basedir, LOG_PRIVMSG);
+ logline(fullmsg, ircdstate, settings->basedir, LOG_PRIVMSG);
}
// If it's a CTCP VERSION response then only send to the server (CTCP requests are delimited with \1)