mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 12:03:11 +00:00
More bugfixes
This commit is contained in:
parent
cdad2f64d9
commit
054344343d
1 changed files with 2 additions and 1 deletions
|
@ -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 a new issue