[pybot-commits] CVS: pybot/pybot/modules eval.py,1.2,1.3
Brought to you by:
niemeyer
From: Gustavo N. <nie...@us...> - 2003-05-05 17:42:15
|
Update of /cvsroot/pybot/pybot/pybot/modules In directory sc8-pr-cvs1:/tmp/cvs-serv4956/pybot/modules Modified Files: eval.py Log Message: Transform evaluation result to string before checking length. Index: eval.py =================================================================== RCS file: /cvsroot/pybot/pybot/pybot/modules/eval.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** eval.py 4 Dec 2001 00:57:38 -0000 1.2 --- eval.py 5 May 2003 17:42:10 -0000 1.3 *************** *** 63,67 **** if mm.hasperm(0, msg.server.servername, msg.target, msg.user, "eval"): try: ! answer = eval(m.group("expr"), self.dict) except: msg.answer("%:", ["Can't evaluate this", "There's something wrong with this expression"], [".", "!"]) --- 63,67 ---- if mm.hasperm(0, msg.server.servername, msg.target, msg.user, "eval"): try: ! answer = str(eval(m.group("expr"), self.dict)) except: msg.answer("%:", ["Can't evaluate this", "There's something wrong with this expression"], [".", "!"]) |