More bugfixes
This commit is contained in:
parent
cdad2f64d9
commit
054344343d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user