Set a the player's LAST and LASTSITE attributes on connect as per MUX.

This commit is contained in:
Greg Taylor 2007-05-18 13:36:39 +00:00
parent c067154cd4
commit 2a46879ad2

View file

@ -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):