diff --git a/README.md b/README.md index 13776c7..2d0a903 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,17 @@ ## Requirements -* lua +* lua >= 5.3 * curl * sed * date ## Usage - c4mate [-u ] [ | -b | -l | +/- | -g []] +If no username is given via the "-u" command line flag, c4mate will use the +value of the $USER environment variable as username. + + Usage: c4mate [-u ] [ | -b | -l | +/- | -g []] Display current balance: c4mate Find and buy item (interactive): diff --git a/c4mate b/c4mate index 7c746f7..c229b01 100755 --- a/c4mate +++ b/c4mate @@ -189,8 +189,8 @@ function MatePad:print_log(log) event = log[i] if event.method == "buy" or event.method == "recharge" then print(string.format( - "[%s] Bought %s", - event.time, event.name + "[%s] Bought %s (#%d)", + event.time, event.name, event.parameter )) elseif event.method == "set_balance" then print(string.format(