ref: 0ca1aa01a7df8a4a15a0580dd5401ad8c4d26595
parent: 6ec48d7672c6733fa875f7c9208f02b340431178
author: noodle <noodle@pastanoggin.com>
date: Wed Dec 24 08:44:39 EST 2025
ircrc: log user messages before sending them to server this would prevent a race condition where the user's message appears *after* a fast message from the server that is sent at a later timestamp (especially relavent when talking to an automated client, e.g., a network service or a bot).
--- a/rc/bin/ircrc
+++ b/rc/bin/ircrc
@@ -112,10 +112,10 @@
if (! ~ $#cmd 0)
out = '('^$target^') ⇐ '^$"cmd}
- if (! ~ $#msg 0)
- echo $msg
if (! ~ $#out 0)
echo `{etime} $out >/dev/cons+ if (! ~ $#msg 0)
+ echo $msg
}
}
--
⑨