All pastes #909473 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-02-19 04:43 UTC
rendered paste body
includeNetwork = myconfig["conf_show_network"]
debug (("includeMachine %d") % ( includeMachine ))

def debug(fmt):
    if debug == 1:
        print fmt

def initialize ():
    global debug

    print "======================================================================="
    print ("%s %s %s v%s by %s") % (color, bold, __module_name__ , __module_version__, __module_author__)
    print "======================================================================="
    if not os.path.exists(xchatdir + "/Config-MacInfo.conf"):
        doUsage("", "", "")
    else:
        print color + "Use /machelp for available commands and options."

    debug = 1

initialize()