mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Changed style of ord command to be cleaner.
This commit is contained in:
parent
046c6998e4
commit
73c3b811aa
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user