Removing some protocol messages. TODO show the source of the message.

master
Tomasz Półgrabia 2017-09-24 15:46:20 +02:00
parent dfae4f7638
commit e0f0363bf9
1 changed files with 5 additions and 1 deletions

View File

@ -107,7 +107,11 @@ function IrcClient(sockJs, nick, userName, realName) {
this.checkForDestElseCreate(destination); this.checkForDestElseCreate(destination);
var server = $("#" + tabRef(destination)); var server = $("#" + tabRef(destination));
var logRow = $("<div/>"); var logRow = $("<div/>");
logRow.text(msg); var privMsgCmd = "PRIVMSG";
var idx = msg.toUpperCase().indexOf(privMsgCmd);
var msgDestData = msg.substr(idx+privMsgCmd.length+1);
var msgData = nextToken(msgDestData, " ");
logRow.text(msgData);
server.append(logRow); server.append(logRow);
return server; return server;
}; };