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/apps/meteor/app/irc/server/irc.js

27 lines
663 B

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