From: Mark Wooding Date: Sat, 1 Sep 2012 17:14:51 +0000 (+0100) Subject: bot.tcl: Trim md5sum(1)'s annoying decoration from its output. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/ircbot/commitdiff_plain/c508866789d53886b40740083cb13ffdad85e45f bot.tcl: Trim md5sum(1)'s annoying decoration from its output. --- diff --git a/bot.tcl b/bot.tcl index d89e18e..dabbf26 100755 --- a/bot.tcl +++ b/bot.tcl @@ -1934,7 +1934,7 @@ def_ucmd summon { } } -proc md5sum {value} { exec md5sum << $value } +proc md5sum {value} { lindex [exec md5sum << $value] 0 } def_ucmd seen { global lastseen nick