From 2b5a55686dfc0c90707543c10a47b8f0337679dc Mon Sep 17 00:00:00 2001
From: Puck Meerburg <puck@puck.moe>
Date: Sat, 26 Jun 2021 23:16:30 +0000
Subject: [PATCH] Fix SJSBY protocol SJOIN buffers being sent to non-SJSBY
 clients

---
 src/modules/sjoin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/sjoin.c b/src/modules/sjoin.c
index 3a8048cb..9d3c117a 100644
--- a/src/modules/sjoin.c
+++ b/src/modules/sjoin.c
@@ -537,7 +537,7 @@ getnick:
 			if (strlen(uid_sjsby_buf) + strlen(prefix) + IDLEN > BUFSIZE - 10)
 			{
 				/* Send what we have and start a new buffer */
-				sendto_server(client, 0, PROTO_SJSBY, recv_mtags, "%s", uid_sjsby_buf);
+				sendto_server(client, PROTO_SJSBY, 0, recv_mtags, "%s", uid_sjsby_buf);
 				snprintf(uid_sjsby_buf, sizeof(uid_sjsby_buf), ":%s SJOIN %lld %s :", client->id, (long long)ts, sj3_parabuf);
 				/* Double-check the new buffer is sufficient to concat the data */
 				if (strlen(uid_sjsby_buf) + strlen(prefix) + strlen(acptr->id) > BUFSIZE - 5)
-- 
2.31.1

