From f84e3d19282641944373a0a02b6406fa03f712cd Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 3 Mar 2013 01:33:06 +0100 Subject: Fix a bug in the status plugin (if python had real closures, I would not need that) --- plugins/status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/status.py') diff --git a/plugins/status.py b/plugins/status.py index fa296c7b..38a26d91 100644 --- a/plugins/status.py +++ b/plugins/status.py @@ -7,7 +7,7 @@ class Plugin(BasePlugin): def init(self): for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'): self.add_command(st, - lambda line: self.core.command_status(st + ' "'+line+'"'), + lambda line,st=st: self.core.command_status(st + ' "'+line+'"'), usage='[status message]', short='Set your status as %s' % st, help='Set your status as %s' % st) -- cgit v1.2.3