ref: b51b623725ce394a1f9f12686f043c1cc3bba7c9
parent: c0a7fbea1f61b1d77a09d612b85c74fd6c673b7c
author: Ori Bernstein <[email protected]>
date: Sun Nov 5 15:46:40 EST 2023
ircrc: fix pong message (thanks mkf) when connecting to ngircd, we can get disconnected with a 'Spoofed prefix' message; this fixes the problem.
--- a/rc/bin/ircrc
+++ b/rc/bin/ircrc
@@ -173,8 +173,8 @@
line = `{echo -n $line | misc}
case *NOTICE*
line = `{echo -n $line | notice}
- case *PING*
- echo -n $line | sed 's/PING/PONG/' > $netdir/data
+ case PING* # *PING* could also be CASEMAPPING
+ echo PONG $line(2) > $netdir/data
line = ()
case *
line = `{echo -n $line | numeric}