Commit 89f4cea2 authored by Svetlana A. Tkachenko's avatar Svetlana A. Tkachenko
Browse files

Fix a function in rpn plugin to reply with error

parent ff6327ce
......@@ -55,7 +55,8 @@ class rpn(object):
elif char == "/":
self.stack.append(b / a)
except Exception as e:
self.conn.reply(str(e))
# Hardcoding this bit in many places is stupid.
self.server.doMessage(channel, user + ": " + str(e))
return
try:
self.server.doMessage(channel, user + ": " + str(self.stack[0]))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment