mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
fantasy: don't allow internal clients to trigger
This commit is contained in:
parent
8e444c5dbe
commit
0378fcca1d
@ -16,7 +16,8 @@ def handle_fantasy(irc, source, command, args):
|
|||||||
return
|
return
|
||||||
channel = args['target']
|
channel = args['target']
|
||||||
text = args['text']
|
text = args['text']
|
||||||
if utils.isChannel(channel) and text.startswith(prefix):
|
if utils.isChannel(channel) and text.startswith(prefix) and not \
|
||||||
|
utils.isInternalClient(irc, source):
|
||||||
# Cut off the length of the prefix from the text.
|
# Cut off the length of the prefix from the text.
|
||||||
text = text[len(prefix):]
|
text = text[len(prefix):]
|
||||||
# Set the last called in variable to the channel, so replies (from
|
# Set the last called in variable to the channel, so replies (from
|
||||||
|
Loading…
Reference in New Issue
Block a user