mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-29 23:11:09 -05:00
fix infilter error when msg.args not present
This commit is contained in:
parent
96c504261f
commit
e33b358512
@ -117,6 +117,7 @@ class Wordgames(callbacks.Plugin):
|
|||||||
def inFilter(self, irc, msg):
|
def inFilter(self, irc, msg):
|
||||||
# Filter out private messages to the bot when they don't use the
|
# Filter out private messages to the bot when they don't use the
|
||||||
# command prefix and the nick is currently playing a guessing game.
|
# command prefix and the nick is currently playing a guessing game.
|
||||||
|
if len(msg.args) > 0:
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
commandChars = conf.supybot.reply.whenAddressedBy.chars
|
commandChars = conf.supybot.reply.whenAddressedBy.chars
|
||||||
if msg.command == 'PRIVMSG' and msg.args[1][0] not in str(commandChars):
|
if msg.command == 'PRIVMSG' and msg.args[1][0] not in str(commandChars):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user