Skip to content

Commit

Permalink
Merge 8b10752 into 39646b6
Browse files Browse the repository at this point in the history
  • Loading branch information
Zarthus committed Nov 5, 2016
2 parents 39646b6 + 8b10752 commit f6689e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/sasl.cpp
Expand Up @@ -101,6 +101,15 @@ class CSASLMod : public CModule {
}

void Set(const CString& sLine) {
if (sLine.Token(1).empty()) {
CString sUsername = GetNV("username");
CString sPassword = GetNV("password");

PutModule("Username is currently " + (sUsername.empty() ? "not set" : "set to '" + sUsername + "'") +
", a password was " + (sPassword.empty() ? "not " : "") + "supplied.");
return;
}

SetNV("username", sLine.Token(1));
SetNV("password", sLine.Token(2));

Expand Down

0 comments on commit f6689e3

Please sign in to comment.