implemented message of the day functionality in the server
This commit is contained in:
parent
dbad7b12ca
commit
2d9b92a972
1 changed files with 1 additions and 0 deletions
|
@ -336,6 +336,7 @@ std::string server::process_command(const std::string& cmd)
|
|||
if(i == cmd.end()) {
|
||||
if(motd_ != "") {
|
||||
out << "message of the day: " << motd_;
|
||||
return out.str();
|
||||
} else {
|
||||
return "no message of the day set";
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue