Enable logging unicode characters
This commit is contained in:
parent
e14d3c30e9
commit
81bcacf695
2 changed files with 4 additions and 3 deletions
|
@ -123,7 +123,8 @@ int main(int argc, char **argv)
|
|||
bool no_daemon = false;
|
||||
std::string config_file;
|
||||
std::string jid;
|
||||
|
||||
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
#ifndef WIN32
|
||||
if (signal(SIGINT, spectrum_sigint_handler) == SIG_ERR) {
|
||||
|
|
|
@ -291,10 +291,10 @@ void AdminInterface::handleQuery(Swift::Message::ref message) {
|
|||
boost::split(args, body, boost::is_any_of(" "));
|
||||
if (args.size() == 2) {
|
||||
if (m_userRegistration->unregisterUser(args[1])) {
|
||||
message->setBody("User unregistered.");
|
||||
message->setBody("User '" + args[1] + "' unregistered.");
|
||||
}
|
||||
else {
|
||||
message->setBody("Registration failed: User is not registered");
|
||||
message->setBody("Registration failed: User '" + args[1] + "' is not registered");
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue