summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-24 00:26:53 -0400
committerJune McEnroe <june@causal.agency>2019-10-24 00:26:53 -0400
commitd5aedc3d84eea0d970f90ddc04f9be331e9c20e9 (patch)
tree473c357825d0e8515baed6709d2e3f7672d69df0 /client.c
parentMake serverFormat public (diff)
downloadpounce-d5aedc3d84eea0d970f90ddc04f9be331e9c20e9.tar.gz
pounce-d5aedc3d84eea0d970f90ddc04f9be331e9c20e9.zip
Make clientFormat public
Diffstat (limited to '')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 3e3684f..9bc8a4a 100644
--- a/client.c
+++ b/client.c
@@ -79,7 +79,7 @@ void clientSend(struct Client *client, const char *ptr, size_t len) {
 	}
 }
 
-static void format(struct Client *client, const char *format, ...) {
+void clientFormat(struct Client *client, const char *format, ...) {
 	char buf[513];
 	va_list ap;
 	va_start(ap, format);
@@ -90,7 +90,7 @@ static void format(struct Client *client, const char *format, ...) {
 }
 
 static void passRequired(struct Client *client) {
-	format(
+	clientFormat(
 		client,
 		":invalid 464 * :Password incorrect\r\n"
 		"ERROR :Password incorrect\r\n"