diff options
Diffstat (limited to '')
-rwxr-xr-x | shbrain.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -8,12 +8,12 @@ do LINE=${LINE[@]:0:$LEN} ### Parsing potential shcmd - if [[ $LINE =~ :([a-zA-Z]*)!.*:shcmd ]]; then + if [[ $LINE =~ :([^!]*)!.*:shcmd ]]; then EXPAND=(${LINE}) CMD=${EXPAND[4]#:} ARGS=${EXPAND[*]:5} if [ "$CMD" = "advert" ]; then - echo "PRIVMSG $ARGS :Listen to shbot, the one true Bot"'!' >&3 + echo "Listen to shbot, the one true Bot!" elif [ "$CMD" = "join" ]; then echo "JOIN $ARGS" >&3 elif [ "$CMD" = "part" ]; then @@ -22,6 +22,8 @@ do ./shquote.sh ${ARGS[*]} elif [ "$CMD" = "trains" ]; then ./shtrains.sh ${ARGS[*]} + elif [ "$CMD" = "duck" ]; then + ./shduck.sh elif [ "$CMD" = "help" ]; then ./shhelp.sh $ARGS else |