From e1956533a6e04d7ba2afdbc841b48804a84120b3 Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 1 Mar 2013 19:25:31 +0100 Subject: Fix #2231 (update the plugins to use the new help system) And fix some imprecisions/mistakes in the help. --- plugins/mpd_client.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/mpd_client.py') 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) -- cgit v1.2.3