Esempio n. 1
0
        public void SetUser(string user)
        {
            string setUser;

            DLRConsole.DebugWriteLine("<- SetUser="******" lastKnownUser="******"THEREFORE Same persom with still unknown name (make one up)");
                    setUser = lastKnownUser = UNKNOWN_PARTENER;
                }
                else
                {
                    DLRConsole.DebugWriteLine("THEREFORE New Person with unknown name");
                    setUser = lastKnownUser = user;
                }
            }
            else
            {
                if (AltBot.UnknowableName(lastKnownUser))
                {
                    DLRConsole.DebugWriteLine("THEREFORE Same Person now known name");
                    WorldSystemModule.RenameUser(lastKnownUser, user);
                    setUser = lastKnownUser = user;
                }
                else
                {
                    if (WorldSystemModule.SameUser(lastKnownUser, user))
                    {
                        DLRConsole.DebugWriteLine("THEREFORE Different Person with known name");
                        setUser       = user;
                        lastKnownUser = user;
                    }
                    else
                    {
                        DLRConsole.DebugWriteLine("THEREFORE New Person with known name");
                        setUser       = user;
                        lastKnownUser = user;
                    }
                }
            }
            user = setUser;
            DLRConsole.DebugWriteLine("-> SetUser="******" lastKnownUser=" + lastKnownUser);
            WorldSystemModule.SetDefaultUser(user);
        }