This should fix bug #1031279, xml.sax exception when calling google commands.

This commit is contained in:
James Vega 2004-09-20 19:12:32 +00:00
parent a87660ade2
commit e48b78787a
1 changed files with 8 additions and 1 deletions

View File

@ -199,9 +199,16 @@ class Google(callbacks.PrivmsgCommandAndRegexp):
callBefore = ['URL']
regexps = ['googleSnarfer', 'googleGroups']
def __init__(self):
super(Google, self).__init__()
self.__parent = super(Google, self)
self.__parent.__init__()
google.setLicense(self.registryValue('licenseKey'))
def callCommand(self, name, irc, msg, *L, **kwargs):
try:
self.__parent.callCommand(name, irc, msg, *L, **kwargs)
except xml.sax.SAXReaderNotAvailable, e:
irc.error('No XML parser available.')
_colorGoogles = {}
def _getColorGoogle(self, m):
s = m.group(1)