Skip to content
Snippets Groups Projects
Commit 0c981313 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixed a minor bug in sendercolor handling

parent d1f32138
Branches
No related tags found
No related merge requests found
......@@ -117,8 +117,8 @@ var sendercolor = function (nick) {
};
var senderIndex = function (str) {
var nickToHash = nick.replace(/_*$/, "").toLowerCase();
return qChecksum(str) & 0xF;
var nickToHash = str.replace(/_*$/, "").toLowerCase();
return qChecksum(nickToHash) & 0xF;
};
return sendercolors[senderIndex(nick)];
......@@ -163,9 +163,9 @@ var attach_buffer = function (elem) {
e.stopPropagation();
}));
buffers[id].contexts.forEach(function (context) {
var context = elem.find("#context" + context.id);
if (context.length)
attach_context(context);
var ctx = elem.find("#context" + context.id);
if (ctx.length)
attach_context(ctx);
})
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment