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


import events
import ui
import windows
import chaninfo
from conf import conf
    def query():
        events.run('query %s' % target, e.window, e.window.network)
    
    def whois():
        events.run('whois %s' % target, e.window, e.window.network)
    
    e.menu += [
        ('Query', query),
        ('Whois', whois),
        (),
        ]

def onHover(e):
    set_target(e)

    for is_check in (is_nick, is_url, is_chan):
        if is_check(e):
            e.tolink.add((e._target_fr, e._target_to))
            break

def onClick(e):
    set_target(e)

    if is_nick(e):
        events.run('query %s' % e._target, e.window, e.window.network)
    
    # url of the form http://xxx.xxx or www.xxx.xxx       
    elif is_url(e):
        if e._target.startswith('www'):
            e._target = 'http://%s' % e._target

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


# Path: scripts/clicks.py
import events
import ui
import windows
import chaninfo
from conf import conf

    def query():
        events.run('query %s' % target, e.window, e.window.network)
    
    def whois():
        events.run('whois %s' % target, e.window, e.window.network)
    
    e.menu += [
        ('Query', query),
        ('Whois', whois),
        (),
        ]

def onHover(e):
    set_target(e)

    for is_check in (is_nick, is_url, is_chan):
        if is_check(e):
            e.tolink.add((e._target_fr, e._target_to))
            break

def onClick(e):
    set_target(e)

    if is_nick(e):
        events.run('query %s' % e._target, e.window, e.window.network)
    
    # url of the form http://xxx.xxx or www.xxx.xxx       
    elif is_url(e):
        if e._target.startswith('www'):
            e._target = 'http://%s' % e._target

        ui.open_file(e._target)