Avoid spamming #firemc #6

Closed
9pfs wants to merge 14 commits from 9pfs/FireBot:dont-spam-firemc into master
Showing only changes of commit 7e927ff7fe - Show all commits

View file

@ -176,6 +176,7 @@ def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]:
if bot.server == "replirc": if bot.server == "replirc":
if msg.split("!", 1)[0][1:] == "FireMCBot": if msg.split("!", 1)[0][1:] == "FireMCBot":
bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n") bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n")
Firepup650 marked this conversation as resolved
Review

Last line of the function MUST be return None, None, it'll crash otherwise.

Last line of the function _**MUST**_ be `return None, None`, it'll crash otherwise.
Review

Fixing

Fixing
return None, None
def NULL(bot: bare.bot, msg: str) -> tuple[None, None]: def NULL(bot: bare.bot, msg: str) -> tuple[None, None]:
return None, None return None, None