示例#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)
示例#2
0
文件: warnings.py 项目: lykoss/lykos
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)
示例#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, [])
示例#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, [])
示例#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)