mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 04:27:16 +02:00
Set a the player's LAST and LASTSITE attributes on connect as per MUX.
This commit is contained in:
parent
c067154cd4
commit
2a46879ad2
1 changed files with 4 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ from apps.objects.models import Object
|
|||
from django.contrib.auth.models import User
|
||||
import commands_general
|
||||
import functions_db
|
||||
import functions_general
|
||||
import session_mgr
|
||||
|
||||
class PlayerSession(async_chat):
|
||||
|
|
@ -164,7 +165,9 @@ class PlayerSession(async_chat):
|
|||
pobject.get_location().emit_to_contents("%s has connected." % (pobject.get_name(),), exclude=pobject)
|
||||
cdat = {"session": self, "uinput":'look', "server": self.server}
|
||||
cmdhandler.handle(cdat)
|
||||
print "Login: %s" % (self,)
|
||||
functions_general.log_infomsg("Login: %s" % (self,))
|
||||
pobject.set_attribute("Last", "%s" % (time.strftime("%a %b %d %H:%M:%S %Y", time.localtime()),))
|
||||
pobject.set_attribute("Lastsite", "%s" % (self.address[0],))
|
||||
self.load_user_channels()
|
||||
|
||||
def msg(self, message):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue