diff --git a/plugins/Lookup.py b/plugins/Lookup.py index 1f489ab93..0a3eb703e 100644 --- a/plugins/Lookup.py +++ b/plugins/Lookup.py @@ -119,7 +119,7 @@ class Lookup(callbacks.Privmsg): self.addCommand(name) except Exception, e: self.log.warning('Couldn\'t add lookup %s: %s', name, e) - + def _shrink(self, s): return utils.ellipsisify(s, 50) @@ -182,7 +182,7 @@ class Lookup(callbacks.Privmsg): def addRegistryValue(self, name, filename): v = registry.String(filename, '') conf.supybot.plugins.Lookup.lookups.register(name, v) - + def addDatabase(self, name, filename): db = self.dbHandler.getDb() cursor = db.cursor() @@ -316,8 +316,8 @@ class Lookup(callbacks.Privmsg): return (key, value) = cursor.fetchone() irc.reply('%s: %s' % (key, value)) - - + + Class = Lookup # vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78: diff --git a/plugins/Services.py b/plugins/Services.py index 81d265e45..61ff53bbc 100644 --- a/plugins/Services.py +++ b/plugins/Services.py @@ -66,7 +66,7 @@ class ValidNickOrEmptyString(registry.String): raise registry.InvalidRegistryValue, \ 'Value must be a valid nick or the empty string.' registry.String.setValue(self, v) - + conf.registerPlugin('Services') # Not really ChannelValues: but we can have values for each network. We # should probably document that this is possible.