mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Slight tweaks.
This commit is contained in:
parent
0f14557342
commit
7b75d47095
@ -506,12 +506,14 @@ class Misc(callbacks.Privmsg):
|
|||||||
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
|
||||||
elif 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.' % target)
|
||||||
return
|
return
|
||||||
elif ircutils.nickEqual(target, irc.nick):
|
elif ircutils.nickEqual(target, irc.nick):
|
||||||
irc.error('You just told me, why should I tell myself?')
|
irc.error('You just told me, why should I tell myself?')
|
||||||
return
|
return
|
||||||
elif target not in irc.state.nicksToHostmasks:
|
elif target not in irc.state.nicksToHostmasks and \
|
||||||
|
not ircdb.checkCapability(msg.prefix, 'owner'):
|
||||||
|
# We'll let owners do this.
|
||||||
s = 'I haven\'t seen %s, I\'ll let you do the telling.' % target
|
s = 'I haven\'t seen %s, I\'ll let you do the telling.' % target
|
||||||
irc.error(s)
|
irc.error(s)
|
||||||
return
|
return
|
||||||
@ -533,7 +535,8 @@ class Misc(callbacks.Privmsg):
|
|||||||
def action(self, irc, msg, args):
|
def action(self, irc, msg, args):
|
||||||
"""<text>
|
"""<text>
|
||||||
|
|
||||||
Returns the arguments given it, but as an action.
|
Replies with <text> as an action. use nested commands to your benefit
|
||||||
|
here.
|
||||||
"""
|
"""
|
||||||
text = privmsgs.getArgs(args)
|
text = privmsgs.getArgs(args)
|
||||||
if text:
|
if text:
|
||||||
|
Loading…
Reference in New Issue
Block a user