* Added copy_object() to the object manager
* Added @copy command (builders only) * Moved the greeting for first-time logins into a hook in basicplayer * Fixed bug in @set to handle whitespace better * Added the /drop switch to @create /Griatch
This commit is contained in:
parent
ee1b891ef4
commit
0e46a61c85
5 changed files with 150 additions and 16 deletions
|
|
@ -158,7 +158,7 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
except:
|
||||
return False
|
||||
|
||||
def login(self, user):
|
||||
def login(self, user, first_login=False):
|
||||
"""
|
||||
After the user has authenticated, handle logging him in.
|
||||
"""
|
||||
|
|
@ -170,6 +170,8 @@ class SessionProtocol(StatefulTelnetProtocol):
|
|||
self.get_pobject()
|
||||
#session_mgr.disconnect_duplicate_session(self)
|
||||
|
||||
if first_login:
|
||||
self.pobject.scriptlink.at_first_login(self)
|
||||
self.pobject.scriptlink.at_pre_login(self)
|
||||
|
||||
logger.log_infomsg("Logged in: %s" % self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue