diff --git a/plugins/Google.py b/plugins/Google.py index 789848384..5ec5ca9f8 100644 --- a/plugins/Google.py +++ b/plugins/Google.py @@ -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)