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.js

25 lines
688 B

import { Meteor } from 'meteor/meteor';
import Bridge from './irc-bridge';
if (!!RocketChat.settings.get('IRC_Enabled') === true) {
// Normalize the config values
const config = {
server: {
protocol: RocketChat.settings.get('IRC_Protocol'),
host: RocketChat.settings.get('IRC_Host'),
port: RocketChat.settings.get('IRC_Port'),
name: RocketChat.settings.get('IRC_Name'),
description: RocketChat.settings.get('IRC_Description'),
},
passwords: {
local: RocketChat.settings.get('IRC_Local_Password'),
peer: RocketChat.settings.get('IRC_Peer_Password'),
},
};
Meteor.ircBridge = new Bridge(config);
Meteor.startup(() => {
Meteor.ircBridge.init();
});
}