shithub: gridirc

Download patch

ref: 034adcbd92e08fa1a2023bf3c0fbe9612f99d6ea
parent: f2de920e69450e9588c543b7d188a257f1d90f62
author: sirjofri <[email protected]>
date: Mon Nov 22 14:11:47 EST 2021

moves JOIN message parsing

--- a/gridirc.rc
+++ b/gridirc.rc
@@ -37,6 +37,12 @@
 	next
 }
 
+doprint && NF > 1 && $1 ~ /^JOIN$/ {
+	printf ":%s JOIN #%s\n", $2, chan
+	fflush
+	next
+}
+
 doprint && NF >= 2 {
 	if (length($2) == 1){
 		sender=$1
@@ -47,12 +53,6 @@
 	} else {
 		printf ":%s PRIVMSG #%s :%s\n", chan, chan, $0
 	}
-	fflush
-	next
-}
-
-doprint && NF > 1 && $1 ~ /^JOIN$/ {
-	printf ":%s JOIN #%s\n", $2, chan
 	fflush
 	next
 }