示例#1
0
def ProcessRequest(RequestedFile, ToNick, FromNick, \
                   ServerContext, ChannelContext):
    global Logger
    Logger.PrintDebug("ProcessRequest")
示例#2
0
global dbc

# Read the config file containing DB information
config = ConfigParser.ConfigParser()
configFile = open(ConfigFileName)
config.readfp(configFile)

# Initialize the DB
dbc = DbCalls(config)

## Debug -- Set to non '0'(zero) to disable
_debug_ = 1

Logger = Logger(_debug_)

Logger.PrintDebug("Loading %s, Version %s" %
                  (__module_name__, __module_version__))

def ProcessRequest(RequestedFile, ToNick, FromNick, \
                   ServerContext, ChannelContext):
    global Logger
    Logger.PrintDebug("ProcessRequest")


def InspectMessage(word, word_eol, userdata=None):
    global dbc
    global Logger
    ServeNick = 'ValHolla'
    ServeNick = ServeNick.lower()

    ServerContext = xchat.get_info("server")  ## Server The Message Came From
    ChannelContext = xchat.get_info(