tshorten use.dcgi - dotg - a bitreich fosdem adventure HTML git clone git://parazyd.org/dotg.git DIR Log DIR Files DIR Refs --- DIR commit 426b6226b3f241ffe2486325b1e0417fd3204433 DIR parent 74b73ef589543b707afb73fee8f956b8a5e7d7fe HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 23 Feb 2018 18:27:00 +0100 shorten use.dcgi Diffstat: M act-i/use.dcgi | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) --- DIR diff --git a/act-i/use.dcgi b/act-i/use.dcgi t@@ -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