summary refs log tree commit diff
path: root/server.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-10-27 23:33:55 -0400
committerJune McEnroe <june@causal.agency>2019-10-27 23:33:55 -0400
commitffac333812563763aa1605181120938c4a914cfe (patch)
tree402d0ac958faae8b3945b6e55202a8b495d9055d /server.c
parentOnly increment consumer after successful send (diff)
downloadpounce-ffac333812563763aa1605181120938c4a914cfe.tar.gz
pounce-ffac333812563763aa1605181120938c4a914cfe.zip
Wait for SASL success before sending CAP END
Also refuse to continue logging in if SASL authentication fails.

I should really just move all of log in and authentication from server.c
to state.c...
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index a304db0..5d985cb 100644
--- a/server.c
+++ b/server.c
@@ -159,7 +159,7 @@ void serverLogin(
 
 void serverAuth(void) {
 	assert(authPlain);
-	serverFormat("AUTHENTICATE %s\r\nCAP END\r\n", authPlain);
+	serverFormat("AUTHENTICATE %s\r\n", authPlain);
 	free(authPlain);
 	authPlain = NULL;
 }