shithub: bin.rc

ref: 17ffc25b2303538e71895e660fce6640d5b1dc3b
dir: /bin/samchat/

View raw version
#!/bin/rc
chan=/n/chat/chat
bind '#|' /mnt/samchat
data=/mnt/samchat/data1
{
	while(){
		<$data >>$chan ssam '
			1 x/^/ c/'$user' : /
			,s/\n\n\n+/\n\n/g
			$-2,$-1 s/\n\n/\n/
			$-#1,$ v/\n/ a/\n/'
	}
} &
echo `{cat /proc/$pid/noteid} >/proc/$apid/noteid