# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


import events
import irc
from conf import conf

def preRaw(e):
    if e.msg[1] in ('PRIVMSG','NOTICE'):
        address = e.network.norm_case('%s!%s' % (e.source, e.address))
        for mask in conf.get('ignore_masks',()):
            if irc.match_glob(address, e.network.norm_case(mask)):
                events.halt()

def onCommandIgnore(e):

# Path: conf.py
# CONF_FILE = os.path.join(urk.userpath,'urk.conf')
# def pprint(obj, depth=-2):
# def save(*args):


# Path: scripts/ignore.py
import events
import irc
from conf import conf


def preRaw(e):
    if e.msg[1] in ('PRIVMSG','NOTICE'):
        address = e.network.norm_case('%s!%s' % (e.source, e.address))
        for mask in conf.get('ignore_masks',()):
            if irc.match_glob(address, e.network.norm_case(mask)):
                events.halt()

def onCommandIgnore(e):

    if 'ignore_masks' not in conf: