mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Now we don't try to send empty messages privately.
This commit is contained in:
parent
481752fddd
commit
bb4890c067
@ -163,13 +163,14 @@ class Config(callbacks.Privmsg):
|
|||||||
search = wrap(search, ['lowered']) # XXX compose with withoutSpaces?
|
search = wrap(search, ['lowered']) # XXX compose with withoutSpaces?
|
||||||
|
|
||||||
def _getValue(self, irc, msg, group):
|
def _getValue(self, irc, msg, group):
|
||||||
|
value = str(group) or ' '
|
||||||
if hasattr(group, 'value'):
|
if hasattr(group, 'value'):
|
||||||
if not group._private:
|
if not group._private:
|
||||||
irc.reply(str(group) or ' ')
|
irc.reply(value)
|
||||||
else:
|
else:
|
||||||
capability = getCapability(group._name)
|
capability = getCapability(group._name)
|
||||||
if ircdb.checkCapability(msg.prefix, capability):
|
if ircdb.checkCapability(msg.prefix, capability):
|
||||||
irc.reply(str(group), private=True)
|
irc.reply(value, private=True)
|
||||||
else:
|
else:
|
||||||
irc.errorNoCapability(capability)
|
irc.errorNoCapability(capability)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user