diff --git a/evennia/commands/default/admin.py b/evennia/commands/default/admin.py index 17d81bcd46..e0403dbc87 100644 --- a/evennia/commands/default/admin.py +++ b/evennia/commands/default/admin.py @@ -29,7 +29,7 @@ class CmdBoot(COMMAND_DEFAULT_CLASS): Switches: quiet - Silently boot without informing player - port - boot by port number instead of name or dbref + sid - boot by session id instead of name or dbref Boot a player object from the server. If a reason is supplied it will be echoed to the user unless /quiet is set. @@ -55,12 +55,12 @@ class CmdBoot(COMMAND_DEFAULT_CLASS): boot_list = [] - if 'port' in self.switches: - # Boot a particular port. - sessions = SESSIONS.get_session_list(True) + if 'sid' in self.switches: + # Boot a particular session id. + sessions = SESSIONS.get_sessions(True) for sess in sessions: - # Find the session with the matching port number. - if sess.getClientAddress()[1] == int(args): + # Find the session with the matching session id. + if sess.sessid == int(args): boot_list.append(sess) break else: