Added a check for multiple connected sessions to avoid moving disconnected object more than once. Resolves issue 145.

This commit is contained in:
Griatch 2011-03-19 22:17:00 +00:00
parent 8288534cf6
commit 2f78bacd97
6 changed files with 26 additions and 19 deletions

View file

@ -330,8 +330,7 @@ class CmdQuit(MuxCommand):
def func(self):
"hook function"
sessions = self.caller.sessions
for session in sessions:
for session in self.caller.sessions:
session.msg("Quitting. Hope to see you soon again.")
session.session_disconnect()