Reset path to weechat if not filled in.
This commit is contained in:
parent
5a5927104d
commit
0823a417f2
@ -677,10 +677,12 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||||||
|
|
||||||
if ((parts = regexHost.exec(settings.hostField)) !== null) { //host only
|
if ((parts = regexHost.exec(settings.hostField)) !== null) { //host only
|
||||||
settings.host = parts[1];
|
settings.host = parts[1];
|
||||||
|
settings.path = "weechat";
|
||||||
$rootScope.portDisabled = false;
|
$rootScope.portDisabled = false;
|
||||||
} else if ((parts = regexHostPort.exec(settings.hostField)) !== null) { //host:port
|
} else if ((parts = regexHostPort.exec(settings.hostField)) !== null) { //host:port
|
||||||
settings.host = parts[1];
|
settings.host = parts[1];
|
||||||
settings.port = parts[2];
|
settings.port = parts[2];
|
||||||
|
settings.path = "weechat";
|
||||||
$rootScope.portDisabled = true;
|
$rootScope.portDisabled = true;
|
||||||
} else if ((parts = regexHostPortPath.exec(settings.hostField)) !== null) { //host:port/path
|
} else if ((parts = regexHostPortPath.exec(settings.hostField)) !== null) { //host:port/path
|
||||||
settings.host = parts[1];
|
settings.host = parts[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user