summaryrefslogtreecommitdiff
path: root/functions.h
diff options
context:
space:
mode:
Diffstat (limited to 'functions.h')
-rw-r--r--functions.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/functions.h b/functions.h
index 7638b61..c0e90f8 100644
--- a/functions.h
+++ b/functions.h
@@ -127,12 +127,17 @@ int inchannel(struct channel *channels, char *name);
// Returns -1 if there was an error.
int channelindex(struct channel *channels, char *name);
-// Send the requested number of lines of replay log to the requested client
+// Send the requested number of lines of replay log to the requested client.
// 'sourcefd' is the client to send to, and replayseconds is the number of
-// seconds of replay to replay.
+// seconds of replay log to replay.
// Returns 1 for success or 0 for failure.
int doreplay(int sourcefd, int replayseconds, struct client *clients, struct settings *settings, struct ircdstate *ircdstate, struct channel *channels);
+// Send the auto replay to the requested client, where 'sourcefd' is the client
+// to send to. The type of replay will depend on the user's settings.
+// Returns 1 for success or 0 for failure.
+int doautoreplay(int sourcefd, struct client *clients, struct settings *settings, struct ircdstate *ircdstate, struct channel *channels);
+
// Return a count of the number of connected clients
int numclients(struct client *clients);