More bugfixes

This commit is contained in:
Mattias Erming 2014-04-26 13:52:11 +02:00
parent cdad2f64d9
commit 054344343d

View File

@ -338,7 +338,8 @@ function event(e, data) {
break;
case "message":
var chan = _.findWhere(channels, {name: data.to});
var target = data.to;
var chan = _.findWhere(channels, {name: target.charAt(0) == "#" ? target : data.from});
if (typeof chan === "undefined") {
chan = new Chan({
name: data.from,