summaryrefslogtreecommitdiff
path: root/message.c
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2019-09-07 15:31:01 +0100
committerLuke Bratch <luke@bratch.co.uk>2019-09-07 15:31:01 +0100
commit979b594b9a58059a5159f2a950e0a71c64f35e38 (patch)
treee395e679d08bb963d75a388fa723942b967cd1c3 /message.c
parentc4e88bfe0c918604cb588ab8b3ce7d29b138cd0f (diff)
Avoid non-existent users appearing in channels after they change nicks by replay logging nick changes.
Diffstat (limited to 'message.c')
-rw-r--r--message.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/message.c b/message.c
index 5860219..1c511d2 100644
--- a/message.c
+++ b/message.c
@@ -411,6 +411,13 @@ int processservermessage(SSL *server_ssl, char *str, struct client *clients, int
// Relay to all clients
sendtoallclients(clients, str, sourcefd, settings);
+ // Write to replay log if replay logging enabled
+ if (settings->replaylogging) {
+ writereplayline(str, settings->basedir);
+ }
+
+ // TODO - Is there a way to log nick changes to the normal log despite not tracking channels or nicks in each channel?
+
free(svrprefixcopy);
return 1;
}