mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Stylistic updates.
This commit is contained in:
parent
78bf842965
commit
139e1bb614
@ -111,8 +111,10 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg):
|
|||||||
def doPrivmsg(self, irc, msg):
|
def doPrivmsg(self, irc, msg):
|
||||||
if ircutils.isChannel(msg.args[0]):
|
if ircutils.isChannel(msg.args[0]):
|
||||||
(channel, payload) = msg.args
|
(channel, payload) = msg.args
|
||||||
length = self.registryValue('randomGrabber.minimumLength', channel)
|
words = self.registryValue('randomGrabber.minimumWords',
|
||||||
words = self.registryValue('randomGrabber.minimumWords', channel)
|
channel)
|
||||||
|
length = self.registryValue('randomGrabber.minimumCharacters',
|
||||||
|
channel)
|
||||||
if self.registryValue('randomGrabber', channel):
|
if self.registryValue('randomGrabber', channel):
|
||||||
if len(payload) > length and len(payload.split()) > words:
|
if len(payload) > length and len(payload.split()) > words:
|
||||||
db = self.getDb(channel)
|
db = self.getDb(channel)
|
||||||
|
Loading…
Reference in New Issue
Block a user