Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment