mudgangster

Log | Files | Refs

commit 15c461db6aec7694d54e2f4b26bfc47d3f34bd61
parent 9741d0926801db1406ba3c0c42bccf2b44b5de39
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Mon,  5 May 2014 11:15:46 +0100

Allow printf style bar:set

Diffstat:
status.lua | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/status.lua b/status.lua @@ -42,10 +42,10 @@ function mud.bar( priority ) priority = priority, text = "", - set = function( self, text ) + set = function( self, form, ... ) enforce( text, "text", "string" ) - self.text = string.parseColours( text ) + self.text = string.parseColours( form:format( ... ) ) drawBar() end, }