mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Made tell not tell lobotomized channels.
This commit is contained in:
parent
81339b68b6
commit
f12c1ba8ff
@ -432,6 +432,11 @@ class Misc(callbacks.Privmsg):
|
|||||||
if not ircutils.isNick(target) and not ircutils.isChannel(target):
|
if not ircutils.isNick(target) and not ircutils.isChannel(target):
|
||||||
irc.error('%s is not a valid nick or channel.' % target)
|
irc.error('%s is not a valid nick or channel.' % target)
|
||||||
return
|
return
|
||||||
|
if ircutils.isChannel(target):
|
||||||
|
c = ircdb.channels.getChannel(target)
|
||||||
|
if c.lobotomized:
|
||||||
|
irc.error('I\'m lobotomized in %s.' % target)
|
||||||
|
return
|
||||||
s = '%s wants me to tell you: %s' % (msg.nick, text)
|
s = '%s wants me to tell you: %s' % (msg.nick, text)
|
||||||
irc.reply(s, to=target, private=True)
|
irc.reply(s, to=target, private=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user