Update examples/server/server.cpp
This commit is contained in:
parent
46132b81f3
commit
f2118a0e61
1 changed files with 2 additions and 5 deletions
|
@ -856,12 +856,9 @@ struct server_context {
|
||||||
// get prompt
|
// get prompt
|
||||||
{
|
{
|
||||||
const auto & prompt = data.find("prompt");
|
const auto & prompt = data.find("prompt");
|
||||||
if (prompt == data.end())
|
if (prompt == data.end()) {
|
||||||
{
|
|
||||||
slot.prompt = "";
|
slot.prompt = "";
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
slot.prompt = *prompt;
|
slot.prompt = *prompt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue