mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Evil lines of DOOM!!!...or just lines that should be empty but have
whitespace.
This commit is contained in:
parent
f0c3ceabcd
commit
d508b19347
@ -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:
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user