diff --git a/irssi.conf b/irssi.conf index bfdb3ba7..5d30dfd0 100644 --- a/irssi.conf +++ b/irssi.conf @@ -64,5 +64,6 @@ aliases = { CHAT = "dcc chat"; RUN = "SCRIPT LOAD"; UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'"; - CALC = "exec - echo -n '$* = ' && echo 'scale = 3\; $*'|bc"; + CALC = "exec - echo $* | bc | awk '{print "$* = "\$1}'"; +"; };