forked from Firepup650/FireBot
Suppress warning if it's a DM to the bot
This commit is contained in:
parent
3098bc8ccf
commit
5c79e1e1a3
1 changed files with 5 additions and 4 deletions
|
@ -68,6 +68,7 @@ def PRIVMSG(bot: bare.bot, msg: str) -> tuple[Union[None, str], Union[None, str]
|
||||||
bot.log(f"Name too long ({len(name)} > {bot.nicklen})")
|
bot.log(f"Name too long ({len(name)} > {bot.nicklen})")
|
||||||
return None, None
|
return None, None
|
||||||
elif chan not in bot.channels:
|
elif chan not in bot.channels:
|
||||||
|
if not chan == bot.nick:
|
||||||
bot.log(
|
bot.log(
|
||||||
f"Channel not in channels ({chan} not in {bot.channels})",
|
f"Channel not in channels ({chan} not in {bot.channels})",
|
||||||
"WARN",
|
"WARN",
|
||||||
|
|
Loading…
Reference in a new issue