summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2023-11-05 20:46:40 +0000
committerOri Bernstein <ori@eigenstate.org>2023-11-05 20:46:40 +0000
commitb51b623725ce394a1f9f12686f043c1cc3bba7c9 (patch)
tree70a21deb5e8e21077769813dca4e979d1c0b0747
parentc0a7fbea1f61b1d77a09d612b85c74fd6c673b7c (diff)
ircrc: fix pong message (thanks mkf)
when connecting to ngircd, we can get disconnected with a 'Spoofed prefix' message; this fixes the problem.
-rwxr-xr-xrc/bin/ircrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc/bin/ircrc b/rc/bin/ircrc
index f7f829e46..8ee1884fb 100755
--- a/rc/bin/ircrc
+++ b/rc/bin/ircrc
@@ -173,8 +173,8 @@ fn pretty {
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}