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)
|
name = CFPython.GetName(activator)
|
||||||
ip = CFPython.WhatIsMessage()
|
ip = CFPython.WhatIsMessage()
|
||||||
|
|
||||||
mail = CFMail.CFMail()
|
|
||||||
log = CFLog.CFLog()
|
log = CFLog.CFLog()
|
||||||
|
|
||||||
|
|
||||||
total = mail.countmail(name)
|
|
||||||
if log.info(name):
|
if log.info(name):
|
||||||
log.login_update(name, ip)
|
log.login_update(name, ip)
|
||||||
else:
|
else:
|
||||||
log.create(name)
|
log.create(name)
|
||||||
|
|
||||||
|
mail = CFMail.CFMail()
|
||||||
|
total = mail.countmail(name)
|
||||||
if total > 0:
|
if total > 0:
|
||||||
CFPython.Write('You have some mail waiting for you', activator)
|
CFPython.Write('You have some mail waiting for you', activator)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue