view bin/show @ 11969:df3a01142399 draft

<oerjan> le/rn Hungry//Hungry is a country in Europe, formerly part of the Ostrich empire. It split after a famine that got so severe that they had to start editing disgusting things like bell peppers. Absurdly, this became a tradition that continues until the present day.
author HackEso <hackeso@esolangs.org>
date Wed, 16 Oct 2019 08:34:37 +0000
parents 859f9b4339e6
children
line wrap: on
line source

#!/bin/sh
. lib/dcc

# Sanitize
INTERP=`echo "$2" | sed 's/[^A-Za-z0-9]/_/g'`

if [ ! -e subinterps/"$INTERP".cmd ]
then
    echo 'That is not a user interpreter!'
    exit 1
fi

if [ "`wc -l subinterps/$INTERP.arg | sed 's/ .*//'`" -gt 1 ]
then
    echo "`cat subinterps/$INTERP.cmd`" '(sending via DCC)'
    dcc_chat $IRC_NICK < subinterps/$INTERP.arg
else
    echo "`cat subinterps/$INTERP.cmd`" "`cat subinterps/$INTERP.arg`"
fi