def expire_tempbans(): acclist, hmlist = db.expire_tempbans() cmodes = [] for acc in acclist: cmodes.append(("-b", "{0}{1}".format(var.ACCOUNT_PREFIX, acc))) for hm in hmlist: cmodes.append(("-b", "*!*@{0}".format(hm.split("@")[1]))) channels.Main.mode(*cmodes)
def expire_tempbans(cli): acclist, hmlist = db.expire_tempbans() cmodes = [] for acc in acclist: cmodes.append(("-b", "{0}{1}".format(var.ACCOUNT_PREFIX, acc))) for hm in hmlist: cmodes.append(("-b", "*!*@{0}".format(hm))) mass_mode(cli, cmodes, [])
def expire_tempbans(): acclist = db.expire_tempbans() cmodes = [] for acc in acclist: cmodes.append(("-b", "{0}{1}".format(var.ACCOUNT_PREFIX, acc))) channels.Main.mode(*cmodes)