mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Changed formatting of rpn in case of a non-empty stack.
This commit is contained in:
parent
3188810d21
commit
e06ce955fa
@ -445,7 +445,8 @@ class FunCommands(callbacks.Privmsg):
|
|||||||
if len(stack) == 1:
|
if len(stack) == 1:
|
||||||
irc.reply(msg, str(self._complexToString(complex(stack[0]))))
|
irc.reply(msg, str(self._complexToString(complex(stack[0]))))
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, 'Stack: %r' % stack)
|
s = ', '.join(map(self._complexToString, map(complex, stack)))
|
||||||
|
irc.reply(msg, 'Stack: [%s]' % s)
|
||||||
|
|
||||||
def objects(self, irc, msg, args):
|
def objects(self, irc, msg, args):
|
||||||
"""takes no arguments.
|
"""takes no arguments.
|
||||||
|
Loading…
Reference in New Issue
Block a user