summaryrefslogtreecommitdiff
path: root/plugins/mpd_client.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mpd_client.py')
-rw-r--r--plugins/mpd_client.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/mpd_client.py b/plugins/mpd_client.py
index e71c8a5f..47bbdf29 100644
--- a/plugins/mpd_client.py
+++ b/plugins/mpd_client.py
@@ -8,9 +8,12 @@ import mpd
class Plugin(BasePlugin):
def init(self):
- self.add_tab_command(tabs.ConversationTab, 'mpd', self.command_mpd, "Usage: /mpd [full]\nMpd: sends a message showing the current song of an MPD instance. If full is provided, the message is more verbose.", self.completion_mpd)
- self.add_tab_command(tabs.MucTab, 'mpd', self.command_mpd, "Usage: /mpd [full]\nMpd: sends a message showing the current song of an MPD instance. If full is provided, the message is more verbose.", self.completion_mpd)
- self.add_tab_command(tabs.PrivateTab, 'mpd', self.command_mpd, "Usage: /mpd [full]\nMpd: sends a message showing the current song of an MPD instance. If full is provided, the message is more verbose.", self.completion_mpd)
+ for _class in (tabs.ConversationTab, tabs.MucTab, tabs.PrivateTab):
+ self.add_tab_command(_class, 'mpd', self.command_mpd,
+ usage='[full]',
+ help='Sends a message showing the current song of an MPD instance. If full is provided, the message is more verbose.',
+ short='Send the MPD status',
+ completion=self.completion_mpd)
def command_mpd(self, args):
args = shell_split(args)