Client can now connect to servers interactively
This commit is contained in:
@@ -102,6 +102,12 @@ void LuaConsole::simplify(const StringVec &words) {
|
||||
if (words.size() != 1) {
|
||||
synerr("/aborthttp takes no arguments");
|
||||
}
|
||||
} else if (words[0] == "connect") {
|
||||
if ((words.size() == 2)&&(sv::valid_hostname(words[1]))) {
|
||||
// OK
|
||||
} else {
|
||||
synerr("/connect [hostname]");
|
||||
}
|
||||
} else {
|
||||
synerr("unrecognized command");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user