Skip to content

Commit fa18b54

Browse files
authored
Merge pull request #65 from Madriix/master
IRCv3 Monitor S
2 parents 0164916 + d6ee0c4 commit fa18b54

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bouncer.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const SERVER_PORT = BOUNCER_MODE=='gateway'?(config.serverPort?config.serverPort
4040
const INGRESSWEBIRC = config.ingresswebircPassword?config.ingresswebircPassword:'';
4141
const SERVER = BOUNCER_MODE=='gateway'?(config.server?config.server:''):'';
4242
const DEBUG = config.debug?config.debug:false;
43+
const IRCV3_MONITOR = config.ircv3Monitor?true:false;
4344

4445

4546
// Reload passwords on sighup
@@ -645,6 +646,8 @@ function clientReconnect(socket) {
645646
socket.write(connection.connectbuf+"\n");
646647
if(connection.nick!=socket.irc.nick)
647648
socket.write(":"+connection.nick_original+" NICK "+connection.nick+"\n");
649+
if (IRCV3_MONITOR)
650+
connection.write("MONITOR S\n");
648651
if(!connection.connected) {
649652
connection.write("AWAY\n");
650653
connection.connected=true;

examples/example.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,7 @@
1919
"bufferMaxSize":52428800,
2020
"bouncerDefaultOpmode":false,
2121

22+
"ircv3Monitor": false,
23+
2224
"debug":false
2325
}

0 commit comments

Comments
 (0)