Exemple #1
0
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)
Exemple #2
0
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)
Exemple #3
0
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, [])
Exemple #4
0
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, [])
Exemple #5
0
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)