diff src/plugins/plugin_misc_text_commands.py @ 929:059b56cbd247

plugin text commands: commands are now sorted in /help
author Goffi <goffi@goffi.org>
date Mon, 24 Mar 2014 15:18:53 +0100
parents 73873e9b56f7
children 301b342c697a
line wrap: on
line diff
--- a/src/plugins/plugin_misc_text_commands.py	Mon Mar 24 14:46:18 2014 +0100
+++ b/src/plugins/plugin_misc_text_commands.py	Mon Mar 24 15:18:53 2014 +0100
@@ -205,7 +205,7 @@
         longuest = max([len(command) for command in commands])
         help_cmds = []
 
-        for command in self._commands:
+        for command in sorted(self._commands):
             method = self._commands[command]
             try:
                 help_str = method.__doc__.split('\n')[0]