Changed style of ord command to be cleaner.

This commit is contained in:
Jeremy Fincher 2003-06-13 16:53:33 +00:00
parent 046c6998e4
commit 73c3b811aa

View File

@ -101,8 +101,7 @@ class FunCommands(callbacks.Privmsg):
if len(letter) != 1: if len(letter) != 1:
irc.error(msg, 'Letter must be of length 1 (for obvious reasons)') irc.error(msg, 'Letter must be of length 1 (for obvious reasons)')
else: else:
i = ord(letter) irc.reply(msg, str(ord(letter)))
irc.reply(msg, str(i))
def chr(self, irc, msg, args): def chr(self, irc, msg, args):
"""<number> """<number>