[pybot-commits] CVS: pybot/pybot/modules forward.py,1.4,1.5
Brought to you by:
niemeyer
From: Gustavo N. <nie...@us...> - 2003-05-13 14:13:44
|
Update of /cvsroot/pybot/pybot/pybot/modules In directory sc8-pr-cvs1:/tmp/cvs-serv14257 Modified Files: forward.py Log Message: Minor fixes in forward module. Index: forward.py =================================================================== RCS file: /cvsroot/pybot/pybot/pybot/modules/forward.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** forward.py 12 May 2003 20:42:21 -0000 1.4 --- forward.py 13 May 2003 14:13:40 -0000 1.5 *************** *** 84,88 **** row.fromserver == server.servername) and \ (row.fromtarget is None or row.fromtarget == target) and \ ! (forme or "f" in row.flags): fwdserver = servers.get(row.toserver) if fwdserver: --- 84,88 ---- row.fromserver == server.servername) and \ (row.fromtarget is None or row.fromtarget == target) and \ ! (forme or "f" not in row.flags): fwdserver = servers.get(row.toserver) if fwdserver: *************** *** 190,193 **** --- 190,198 ---- "Right now", "Of course"], ["!", "."]) + else: + msg.answer("%:", ["You're not allowed to work with forwards", + "Unfortunately, you can't do that", + "You're not able to do that"], + [".", "!"]) return 0 *************** *** 232,235 **** --- 237,245 ---- str = str+" with server" msg.answer("%:", str, ".") + else: + msg.answer("%:", ["You're not allowed to work with forwards", + "Unfortunately, you can't do that", + "You're not able to do that"], + [".", "!"]) return 0 |