remove LEAVE_ON_LOGOUT setting, now enabled automatically when ACCOUNTS_ONLY is on

note: this setting seems to trigger when switching accounts also
This commit is contained in:
jacob1 2015-04-18 17:44:59 -04:00
parent b35287f0a1
commit f3fd5b970c
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,6 @@ LEAVE_STASIS_PENALTY = 1
IDLE_STASIS_PENALTY = 1
PART_STASIS_PENALTY = 1
ACC_STASIS_PENALTY = 1
LEAVE_ON_LOGOUT = False # If True, the bot will consider a NickServ logout as a quit
QUIET_DEAD_PLAYERS = False
QUIET_MODE = "q" # "q" or "b"
QUIET_PREFIX = "" # "" or "~q:"

View File

@ -1431,9 +1431,10 @@ def on_kicked(cli, nick, chan, victim, reason):
def on_account(cli, rnick, acc):
nick, mode, user, cloak = parse_nick(rnick)
chan = botconfig.CHANNEL
if acc == "*" and var.LEAVE_ON_LOGOUT and var.PHASE in ("join", "day", "night") and nick in var.PLAYERS:
if acc == "*" and var.ACCOUNTS_ONLY and nick in var.list_players():
cli.mode(chan, "-v", nick)
leave(cli, "account", nick)
cli.notice(nick, "Please reidentify to the account \u0002{0}\u0002".format(var.USERS[nick]["account"]))
if nick in var.USERS.keys():
var.USERS[nick]["cloak"] = cloak
var.USERS[nick]["account"] = acc