ViewVC Help
View File
|
Revision Log
|
Show Annotations
|
Download File
/
cvs
/
deliantra
/
maps
/
python
/
events
/
login
/
log_login.py
Revision:
1.1
Committed:
Sun Feb 5 00:02:08 2006 UTC
(18 years, 5 months ago) by
root
Content type:
text/x-python
Branch point for:
UPSTREAM, MAIN
Log Message:
Initial revision
File Contents
#
User
Rev
Content
1
root
1.1
import Crossfire
2
import CFLog
3
4
activator = Crossfire.WhoIsActivator()
5
name = activator.Name
6
ip = Crossfire.WhatIsMessage()
7
8
log = CFLog.CFLog()
9
10
if log.info(name):
11
log.login_update(name, ip)
12
else:
13
log.create(name)