From e06ce955fa47e56a8835e6600859202ce7507ed5 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 20 Apr 2003 09:04:27 +0000 Subject: [PATCH] Changed formatting of rpn in case of a non-empty stack. --- plugins/FunCommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 9a938ab46..326f193af 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -445,7 +445,8 @@ class FunCommands(callbacks.Privmsg): if len(stack) == 1: irc.reply(msg, str(self._complexToString(complex(stack[0])))) 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): """takes no arguments.