Removing some protocol messages. TODO show the source of the message.
parent
dfae4f7638
commit
e0f0363bf9
|
@ -107,7 +107,11 @@ function IrcClient(sockJs, nick, userName, realName) {
|
|||
this.checkForDestElseCreate(destination);
|
||||
var server = $("#" + tabRef(destination));
|
||||
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);
|
||||
return server;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue