mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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)
|
self.addCommand(name)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.log.warning('Couldn\'t add lookup %s: %s', name, e)
|
self.log.warning('Couldn\'t add lookup %s: %s', name, e)
|
||||||
|
|
||||||
def _shrink(self, s):
|
def _shrink(self, s):
|
||||||
return utils.ellipsisify(s, 50)
|
return utils.ellipsisify(s, 50)
|
||||||
|
|
||||||
@ -182,7 +182,7 @@ class Lookup(callbacks.Privmsg):
|
|||||||
def addRegistryValue(self, name, filename):
|
def addRegistryValue(self, name, filename):
|
||||||
v = registry.String(filename, '')
|
v = registry.String(filename, '')
|
||||||
conf.supybot.plugins.Lookup.lookups.register(name, v)
|
conf.supybot.plugins.Lookup.lookups.register(name, v)
|
||||||
|
|
||||||
def addDatabase(self, name, filename):
|
def addDatabase(self, name, filename):
|
||||||
db = self.dbHandler.getDb()
|
db = self.dbHandler.getDb()
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
@ -316,8 +316,8 @@ class Lookup(callbacks.Privmsg):
|
|||||||
return
|
return
|
||||||
(key, value) = cursor.fetchone()
|
(key, value) = cursor.fetchone()
|
||||||
irc.reply('%s: %s' % (key, value))
|
irc.reply('%s: %s' % (key, value))
|
||||||
|
|
||||||
|
|
||||||
Class = Lookup
|
Class = Lookup
|
||||||
|
|
||||||
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
# vim:set shiftwidth=4 tabstop=8 expandtab textwidth=78:
|
||||||
|
@ -66,7 +66,7 @@ class ValidNickOrEmptyString(registry.String):
|
|||||||
raise registry.InvalidRegistryValue, \
|
raise registry.InvalidRegistryValue, \
|
||||||
'Value must be a valid nick or the empty string.'
|
'Value must be a valid nick or the empty string.'
|
||||||
registry.String.setValue(self, v)
|
registry.String.setValue(self, v)
|
||||||
|
|
||||||
conf.registerPlugin('Services')
|
conf.registerPlugin('Services')
|
||||||
# Not really ChannelValues: but we can have values for each network. We
|
# Not really ChannelValues: but we can have values for each network. We
|
||||||
# should probably document that this is possible.
|
# should probably document that this is possible.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user