mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Some extra rules for not telling.
This commit is contained in:
parent
2fe7bd8c7a
commit
76bdab270f
15
src/Misc.py
15
src/Misc.py
@ -509,17 +509,18 @@ class Misc(callbacks.Privmsg):
|
|||||||
(target, text) = privmsgs.getArgs(args, required=2)
|
(target, text) = privmsgs.getArgs(args, required=2)
|
||||||
if target.lower() == 'me':
|
if target.lower() == 'me':
|
||||||
target = msg.nick
|
target = msg.nick
|
||||||
if ircutils.isChannel(target):
|
elif ircutils.isChannel(target):
|
||||||
irc.error('Dude, just give the command. No need for the tell.')
|
irc.error('Dude, just give the command. No need for the tell.')
|
||||||
return
|
return
|
||||||
if not ircutils.isNick(target):
|
elif not ircutils.isNick(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):
|
elif ircutils.nickEqual(target, irc.nick):
|
||||||
c = ircdb.channels.getChannel(target)
|
irc.error('You just told me, why should I tell myself?')
|
||||||
if c.lobotomized:
|
return
|
||||||
irc.error('I\'m lobotomized in %s.' % target)
|
elif target not in irc.state.nicksToHostmasks:
|
||||||
return
|
irc.error('I haven\'t seen %s, I\'ll let you do the telling.')
|
||||||
|
return
|
||||||
if irc.action:
|
if irc.action:
|
||||||
irc.action = False
|
irc.action = False
|
||||||
text = '* %s %s' % (irc.nick, text)
|
text = '* %s %s' % (irc.nick, text)
|
||||||
|
Loading…
Reference in New Issue
Block a user