The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/rocketchat-irc/server/irc-bridge/localHandlers/onCreateRoom.js

11 lines
310 B

export default function handleOnCreateRoom(user, room) {
const users = RocketChat.models.Users.findByRoomId(room._id);
users.forEach((user) => {
if (user.profile.irc.fromIRC) {
this.sendCommand('joinChannel', { room, user });
} else {
this.sendCommand('joinedChannel', { room, user });
}
});
}