diff options
author | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:50:17 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2019-06-11 19:50:17 +0100 |
commit | 9db9fb396aaf601bd00f2b62face2693307a0e16 (patch) | |
tree | 2c5603a723899c0f5a4ec129cdaee1e5b1f6b556 /functions.h | |
parent | f660bbd1bfed3fbd36d684cd2f09ca1520520557 (diff) |
Refactoring - rename ircdstrings struct to ircdstate since it doesn't just contain strings.
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/functions.h b/functions.h index 91ce35f..7638b61 100644 --- a/functions.h +++ b/functions.h @@ -102,7 +102,7 @@ int sendtoserver(SSL *server_ssl, char *strsrc, int str_len, int clientfd, struc // it from the array of clients. // Also set its authentication and registration statuses to 0. // Also set the pending statuses to 0 -int disconnectclient(int fd, struct client *clients, struct ircdstrings *ircdstrings, struct settings *settings); +int disconnectclient(int fd, struct client *clients, struct ircdstate *ircdstate, struct settings *settings); int createchannel(struct channel *channels, char *name, char *topic, char *topicwho, char *topicwhen); @@ -131,7 +131,7 @@ int channelindex(struct channel *channels, char *name); // 'sourcefd' is the client to send to, and replayseconds is the number of // seconds of replay to replay. // Returns 1 for success or 0 for failure. -int doreplay(int sourcefd, int replayseconds, struct client *clients, struct settings *settings, struct ircdstrings *ircdstrings, struct channel *channels); +int doreplay(int sourcefd, int replayseconds, 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); @@ -144,11 +144,11 @@ int joinautochannels(SSL *server_ssl, struct client *clients, struct settings *s // Try to make a new nick if no configured are available or liked by the server // Do this by sticking a number on the end of the current nick and trying numbers // 1 through to 9. -void tryautonick(struct ircdstrings *ircdstrings); +void tryautonick(struct ircdstate *ircdstate); // Exit the program cleanly - tell clients, tell the server, then exit(0) // Optional quit message string "quitmsg" // "sourcefd" of 0 means the request didn't come from a client -void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct ircdstrings *ircdstrings, struct settings *settings, char *quitmsg); +void cleanexit(SSL *server_ssl, struct client *clients, int sourcefd, struct ircdstate *ircdstate, struct settings *settings, char *quitmsg); #endif |