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} line = `{echo -n $line | misc}
case *NOTICE* case *NOTICE*
line = `{echo -n $line | notice} line = `{echo -n $line | notice}
case *PING* case PING* # *PING* could also be CASEMAPPING
echo -n $line | sed 's/PING/PONG/' > $netdir/data echo PONG $line(2) > $netdir/data
line = () line = ()
case * case *
line = `{echo -n $line | numeric} line = `{echo -n $line | numeric}