Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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, [])
Ejemplo n.º 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, [])
Ejemplo n.º 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)