3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

fantasy: don't allow internal clients to trigger

This commit is contained in:
James Lu 2015-09-26 09:47:39 -07:00
parent 8e444c5dbe
commit 0378fcca1d

View File

@ -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