mod_util.py

changeset 111
44d9aea72947
parent 107
14e1d18d2a2a
child 113
08e9b1c1b324
equal deleted inserted replaced
110:b2770c43b752 111:44d9aea72947
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:

mercurial