mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 11:42:51 +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
|
||||
channel = args['target']
|
||||
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.
|
||||
text = text[len(prefix):]
|
||||
# Set the last called in variable to the channel, so replies (from
|
||||
|
Loading…
Reference in New Issue
Block a user