~johanvandegriff/live.johanv.xyz

c59722bd0f1075588b6fb5e51c91c6310afbafe6 — Johan Vandegriff 4 months ago bd1999f master
ignored whispers
1 files changed, 4 insertions(+), 1 deletions(-)

M server.js
M server.js => server.js +4 -1
@@ 25,7 25,7 @@ app.use('/live', express.static('live'));
io.on('connection', (socket) => {
    console.log('a user connected');
    socket.on('disconnect', () => {
        console.log('user disconnected');
        console.log('a user disconnected');
    });

    socket.on('chat message', (msg) => {


@@ 83,6 83,9 @@ function onMessageHandler (target, context, msg, self) {
    console.log("MSG " + msg);
    console.log("SELF " + self);

    // Ignore whispers
    if (context.message-type == "whisper") { return; }

    //copy twitch chat to socket chat
    iosend(context.username, msg);