patch issue in r46
This commit is contained in:
parent
3f077f15f0
commit
1cc6cd2b90
@ -498,16 +498,15 @@ var maybeWriterFor = function(username) {
|
||||
};
|
||||
|
||||
var writerFor = function(username) {
|
||||
var ret = maybeWriterFor(username);
|
||||
|
||||
if (ret === null) {
|
||||
// create new
|
||||
tabid = tab_new(next_tabid++, username);
|
||||
pm_tabs[username] = tabid;
|
||||
return write(tabid);
|
||||
var ret = maybeWriterFor(username);
|
||||
if (ret !== null) {
|
||||
return ret; // found
|
||||
}
|
||||
|
||||
return ret;
|
||||
// create new
|
||||
var tabid = tab_new(next_tabid++, username);
|
||||
pm_tabs[username] = tabid;
|
||||
return write(tabid);
|
||||
};
|
||||
|
||||
/* */
|
||||
|
Loading…
Reference in New Issue
Block a user