103 while len (commandlist) > 0: |
103 while len (commandlist) > 0: |
104 partitioned.append (commandlist[0:15]) |
104 partitioned.append (commandlist[0:15]) |
105 commandlist = commandlist[15:] |
105 commandlist = commandlist[15:] |
106 |
106 |
107 for part in partitioned: |
107 for part in partitioned: |
108 bot.privmsg (replyto, 'Available commands: %s' % (", ".join (part))) |
108 bot.privmsg (replyto, '\002Available commands\002: %s' % (", ".join (part))) |
109 |
109 |
110 def cmd_help (bot, replyto, ident, host, args, **rest): |
110 def cmd_help (bot, replyto, ident, host, args, **rest): |
111 cmd = ModuleCore.get_command_by_name (args['command']) |
111 cmd = ModuleCore.get_command_by_name (args['command']) |
112 |
112 |
113 if not cmd: |
113 if not cmd: |