martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.33k stars 424 forks source link

ChannelRestrict? invite or a sajoin the bot join #561

Open ZarTek-Creole opened 3 years ago

ZarTek-Creole commented 3 years ago

When any user uses /invites on the robot, the robot joins the room automatically. Even if the living room did not configure in the robot.

In some cases, this attitude was not wanted. How can you prevent unconfigured rooms from being joined? Maybe a boolean ChannelRestrict option in irc.Client (server, nick [, options])?

Something that at the 'join' event checks, if this is a channel allowed by configuration if the ChannelRestrict option is set to true?

*Same thing when an IRC operator uses a SAJOIN