Evil lines of DOOM!!!...or just lines that should be empty but have

whitespace.
This commit is contained in:
James Vega 2004-06-04 06:14:29 +00:00
parent f0c3ceabcd
commit d508b19347
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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.