summaryrefslogtreecommitdiff
path: root/blabouncer.c
diff options
context:
space:
mode:
Diffstat (limited to 'blabouncer.c')
-rw-r--r--blabouncer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/blabouncer.c b/blabouncer.c
index f250959..0d17468 100644
--- a/blabouncer.c
+++ b/blabouncer.c
@@ -449,6 +449,10 @@ int doreplay(int sourcefd, int replayseconds, struct client *clients, struct set
return 1;
}
+ // Announce the start
+ snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Starting log replay....", ircdstrings->ircnick);
+ sendtoclient(sourcefd, outgoingmsg, clients, settings);
+
// Replay those lines!
for (int i = 0; i < numlines; i++) {
if (!readreplayline(replayseconds, i, outgoingmsg, settings->basedir)) {
@@ -459,6 +463,9 @@ int doreplay(int sourcefd, int replayseconds, struct client *clients, struct set
sendtoclient(sourcefd, outgoingmsg, clients, settings);
}
+ // Announce the end
+ snprintf(outgoingmsg, MAXDATASIZE, "NOTICE %s :Log replay complete.", ircdstrings->ircnick);
+
return 1;
}