Log, then check mail - if mail fails, log is still written.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3498 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2005-07-22 19:32:16 +00:00
parent bfe6b75bbf
commit f294079e74
1 changed files with 2 additions and 3 deletions

View File

@ -28,16 +28,15 @@ activator = CFPython.WhoIsActivator()
name = CFPython.GetName(activator)
ip = CFPython.WhatIsMessage()
mail = CFMail.CFMail()
log = CFLog.CFLog()
total = mail.countmail(name)
if log.info(name):
log.login_update(name, ip)
else:
log.create(name)
mail = CFMail.CFMail()
total = mail.countmail(name)
if total > 0:
CFPython.Write('You have some mail waiting for you', activator)
else: