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
1 changed files with 1 additions and 2 deletions

View File

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