diff --git a/src/main/resources/static/IrcClient.js b/src/main/resources/static/IrcClient.js index 4b7a6cf..9bc2f35 100644 --- a/src/main/resources/static/IrcClient.js +++ b/src/main/resources/static/IrcClient.js @@ -107,7 +107,11 @@ function IrcClient(sockJs, nick, userName, realName) { this.checkForDestElseCreate(destination); var server = $("#" + tabRef(destination)); var logRow = $("
"); - 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); return server; };