Commits

Jason R. Coombs committed 7079cb9

Fixed help

  • Participants
  • Parent commits 7684980

Comments (0)

Files changed (1)

File pmxbot/commands.py

 import random
 import csv
 import io
+import operator
 from xml.etree import ElementTree
 
 import popquotes.pmxbot as pq
 			yield "command not found"
 	else:
 		def mk_entries():
-			for handler in sorted(_handler_registry, key=lambda x: x[1]):
+			for handler in sorted(_handler_registry,
+					key=operator.attrgetter('name')):
 				typ, name, f, doc, junk1, junk2, junk3, priority = handler
 				if typ == 'command':
 					aliases = sorted(