rendered paste body# -*- coding: utf-8 -*-import xchat,os,copy,re,os.path,string,sysdef getinfo (args): includeMachine = myconfig["conf_show_machine"] debug (("includeMachine %d") % ( includeMachine ))def debug(fmt): if dbg == 1: print fmt## say#def say(string): xchat.command("SAY " + string)## lchop## return left side of :#def lchop (line): temp = line.split(':') temp = trim(temp[0]) return temp## rchop## return lefi side of :#def rchop (line): temp = line.split(':') temp = trim(temp[1]) return temp# ==========================================================================================# begin execution# ==========================================================================================## initialize#def initialize (): global dbg 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." dbg = 1## read_config#def read_config (): global myconfig configfile = xchatdir + "/Config-MacInfo.conf" myconfig = config(configfile)initialize()read_config()