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-b93c2d0d6712master
parent
bfe6b75bbf
commit
f294079e74
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue