summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-03 01:33:06 +0100
committermathieui <mathieui@mathieui.net>2013-03-03 01:33:06 +0100
commitf84e3d19282641944373a0a02b6406fa03f712cd (patch)
tree3584b1a60d4783a1c38faa847ef0fa80ec67a1b8 /plugins
parentb8bc08eb4cce3313d0c2b06e2c898f5207299808 (diff)
downloadpoezio-f84e3d19282641944373a0a02b6406fa03f712cd.tar.gz
poezio-f84e3d19282641944373a0a02b6406fa03f712cd.tar.bz2
poezio-f84e3d19282641944373a0a02b6406fa03f712cd.tar.xz
poezio-f84e3d19282641944373a0a02b6406fa03f712cd.zip
Fix a bug in the status plugin
(if python had real closures, I would not need that)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/status.py2
1 files changed, 1 insertions, 1 deletions
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)