dotg

a bitreich fosdem adventure
git clone git://parazyd.org/dotg.git
Log | Files | Refs

commit 426b6226b3f241ffe2486325b1e0417fd3204433
parent 74b73ef589543b707afb73fee8f956b8a5e7d7fe
Author: parazyd <parazyd@dyne.org>
Date:   Fri, 23 Feb 2018 18:27:00 +0100

shorten use.dcgi

Diffstat:
Mact-i/use.dcgi | 21+++++----------------
1 file changed, 5 insertions(+), 16 deletions(-)

diff --git a/act-i/use.dcgi b/act-i/use.dcgi @@ -12,28 +12,17 @@ call="$(find_usecase $itemname $currentloc)" case "$call" in No*) - cat <<EOM -$call - -[1|Exit|$path/$(cat $savegame/room).dcgi|server|port] -EOM - return + echo "$call" ;; use-generic*) use_generic "$itemname" - cat <<EOM - -[1|Exit|$path/$(cat $savegame/room).dcgi|server|port] -EOM - return ;; use-specific*) use_specific "$(echo $call | awk -F, '{print $2}')" "$itemname" - cat <<EOM - -[1|Exit|$path/$(cat $savegame/room).dcgi|server|port] -EOM - return ;; esac +cat <<EOM + +[1|Exit|$path/$(cat $savegame/room).dcgi|server|port] +EOM