From ff3e396e92dfc6f95bf8e7a099e43cc0d3eebdf9 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 9 Nov 2012 19:13:33 -0500 Subject: Add a config option to disable sasl --- src/config.cpp | 1 + src/users.cpp | 5 +++++ 2 files changed, 6 insertions(+) (limited to 'src') diff --git a/src/config.cpp b/src/config.cpp index 3f35a2ef2..be12c3479 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1285,6 +1285,7 @@ ConfigItems::ConfigItems(ServerConfig *conf) {"nickserv", "kill", "60", new ValueContainerTime(&conf->NSKill), DT_TIME, NoValidation}, {"nickserv", "modesonid", "", new ValueContainerString(&conf->NSModesOnID), DT_STRING, NoValidation}, {"nickserv", "restoreonghost", "yes", new ValueContainerBool(&conf->NSRestoreOnGhost), DT_BOOLEAN, NoValidation}, + {"nickserv", "sasl", "yes", new ValueContainerBool(&conf->NSSASL), DT_BOOLEAN, NoValidation}, {"mail", "usemail", "no", new ValueContainerBool(&conf->UseMail), DT_BOOLEAN, ValidateEmailReg}, {"mail", "sendmailpath", "", new ValueContainerString(&conf->SendMailPath), DT_STRING, ValidateMail}, {"mail", "sendfrom", "", new ValueContainerString(&conf->SendFrom), DT_STRING, ValidateMail}, diff --git a/src/users.cpp b/src/users.cpp index 684817d2e..f536115d4 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -455,6 +455,9 @@ void User::Login(NickCore *core) core->Users.push_back(this); this->UpdateHost(); + + if (this->server->IsSynced()) + Log(this, "account") << "is now identified as " << this->nc->display; } /** Logout the user @@ -463,6 +466,8 @@ void User::Logout() { if (!this->nc) return; + + Log(this, "account") << "is not longer identified as " << this->nc->display; std::list::iterator it = std::find(this->nc->Users.begin(), this->nc->Users.end(), this); if (it != this->nc->Users.end()) -- cgit