summaryrefslogtreecommitdiff
path: root/plugins/mpd_client.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-03-01 19:25:31 +0100
committermathieui <mathieui@mathieui.net>2013-03-01 19:25:31 +0100
commite1956533a6e04d7ba2afdbc841b48804a84120b3 (patch)
treefc2e61bacc68adc9d0c5382a4797018db1223eab /plugins/mpd_client.py
parent43c93a0a1b84c87b587174c49753b036f42672cd (diff)
downloadpoezio-e1956533a6e04d7ba2afdbc841b48804a84120b3.tar.gz
poezio-e1956533a6e04d7ba2afdbc841b48804a84120b3.tar.bz2
poezio-e1956533a6e04d7ba2afdbc841b48804a84120b3.tar.xz
poezio-e1956533a6e04d7ba2afdbc841b48804a84120b3.zip
Fix #2231 (update the plugins to use the new help system)
And fix some imprecisions/mistakes in the help.
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)