summaryrefslogtreecommitdiff
path: root/plugins/status.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/status.py')
-rw-r--r--plugins/status.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/status.py b/plugins/status.py
index 38a26d91..7ff55382 100644
--- a/plugins/status.py
+++ b/plugins/status.py
@@ -6,8 +6,8 @@ class Plugin(BasePlugin):
"""
def init(self):
for st in ('dnd', 'busy', 'afk', 'chat', 'xa', 'away', 'available'):
- self.add_command(st,
- lambda line,st=st: self.core.command_status(st + ' "'+line+'"'),
+ self.api.add_command(st,
+ lambda line,st=st: self.api.run_command('/status' + st + ' "'+line+'"'),
usage='[status message]',
short='Set your status as %s' % st,
help='Set your status as %s' % st)