def decrement_stasis(user=None): if user is not None: # decrement account stasis even if accounts are disabled if user.account in var.STASISED_ACCS: db.decrement_stasis(acc=user.account) else: db.decrement_stasis() # Also expire any expired stasis and tempbans and update our tracking vars db.expire_stasis() db.init_vars()
def decrement_stasis(user=None): if user is not None: # decrement account stasis even if accounts are disabled if user.account in var.STASISED_ACCS: db.decrement_stasis(acc=user.account) for hostmask in var.STASISED: if user.match_hostmask(hostmask): db.decrement_stasis(hostmask=hostmask) else: db.decrement_stasis() # Also expire any expired stasis and tempbans and update our tracking vars db.expire_stasis() db.init_vars()
def decrement_stasis(nick=None): if nick and nick in var.USERS: ident = irc_lower(var.USERS[nick]["ident"]) host = var.USERS[nick]["host"].lower() acc = irc_lower(var.USERS[nick]["account"]) # decrement account stasis even if accounts are disabled if acc in var.STASISED_ACCS: db.decrement_stasis(acc=acc) for hostmask in var.STASISED: if match_hostmask(hostmask, nick, ident, host): db.decrement_stasis(hostmask=hostmask) else: db.decrement_stasis() # Also expire any expired stasis and tempbans and update our tracking vars db.expire_stasis() db.init_vars()
def decrement_stasis(nick=None): if nick and nick in var.USERS: ident = irc_lower(var.USERS[nick]["ident"]) host = var.USERS[nick]["host"].lower() acc = irc_lower(var.USERS[nick]["account"]) # decrement account stasis even if accounts are disabled if acc in var.STASISED_ACCS: db.decrement_stasis(acc=acc) for hostmask in var.STASISED: if match_hostmask(hostmask, nick, ident, host): db.decrement_stasis(hostmask=hostmask) else: db.decrement_stasis() # Also expire any expired stasis and tempbans and update our tracking vars db.expire_stasis() db.init_vars()