ircrc: fix pong message (thanks mkf)

when connecting to ngircd, we can get disconnected
with a 'Spoofed prefix' message; this fixes the problem.
This commit is contained in:
Ori Bernstein 2023-11-05 20:46:40 +00:00
parent c0a7fbea1f
commit b51b623725

View file

@ -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}