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,10 +68,11 @@ 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:
|
||||||
bot.log(
|
if not chan == bot.nick:
|
||||||
f"Channel not in channels ({chan} not in {bot.channels})",
|
bot.log(
|
||||||
"WARN",
|
f"Channel not in channels ({chan} not in {bot.channels})",
|
||||||
)
|
"WARN",
|
||||||
|
)
|
||||||
if not chan.startswith(("#", "+", "&")):
|
if not chan.startswith(("#", "+", "&")):
|
||||||
chan = name
|
chan = name
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue