Adding source to the channels
parent
e0f0363bf9
commit
fce733acf2
|
@ -107,11 +107,12 @@ 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/>");
|
||||||
|
var source = currentToken(nextToken(msg, " "), " ");
|
||||||
var privMsgCmd = "PRIVMSG";
|
var privMsgCmd = "PRIVMSG";
|
||||||
var idx = msg.toUpperCase().indexOf(privMsgCmd);
|
var idx = msg.toUpperCase().indexOf(privMsgCmd);
|
||||||
var msgDestData = msg.substr(idx+privMsgCmd.length+1);
|
var msgDestData = msg.substr(idx+privMsgCmd.length+1);
|
||||||
var msgData = nextToken(msgDestData, " ");
|
var msgData = nextToken(msgDestData, " ");
|
||||||
logRow.text(msgData);
|
logRow.text("<" + source + "> " + msgData);
|
||||||
server.append(logRow);
|
server.append(logRow);
|
||||||
return server;
|
return server;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue