Mercurial > avadmin > converted
changeset 478:8b18f9b1ff35
Don't polute a new message with errors
(Logical change 1.141)
author | optonline.net!jeffpc |
---|---|
date | Fri, 02 Jan 2004 02:09:48 +0000 |
parents | 84ab19ee1b63 |
children | 4b08a64cc125 |
files | mess_comp.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mess_comp.py Fri Jan 02 02:02:25 2004 +0000 +++ b/mess_comp.py Fri Jan 02 02:09:48 2004 +0000 @@ -49,7 +49,10 @@ touid = conn.db.execSQL("SELECT `id` FROM `users` WHERE `name`=\"" + tousername + "\";")[0][0] except IndexError: touid = "" - tousername = "invalid!" + if (tousername.__len__()): + tousername += " - invalid!" + else: + tousername = "" failed = True if (send) and (not failed):