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/app/irc/server/irc-bridge/localHandlers/onCreateRoom.js

13 lines
339 B

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