diff options
| author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-31 06:15:29 +0000 |
|---|---|---|
| committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-31 06:15:29 +0000 |
| commit | aa4b3e256377030d291fc2d5f4db94985ce04395 (patch) | |
| tree | 993302c0cbe754612f69c22bbbc57d00220cabd4 /src/encrypt.c | |
| parent | 47504c9de5accda45a19627fd2b6ec13baa6ba95 (diff) | |
replaced the alog() command with a new type-safe and stream-based Alog()
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2777 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/encrypt.c')
| -rw-r--r-- | src/encrypt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/encrypt.c b/src/encrypt.c index 34fb2d023..00d2ad805 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -55,7 +55,7 @@ int enc_decrypt(const std::string &src, std::string &dest) size_t pos = src.find(":"); if (pos == std::string::npos) { - alog("Error: enc_decrypt() called with invalid password string (%s)", src.c_str()); + Alog() << "Error: enc_decrypt() called with invalid password string (" << src << ")"; return -1; } std::string hashm(src.begin(), src.begin()+pos); @@ -80,7 +80,7 @@ int enc_check_password(std::string &plaintext, std::string &password) size_t pos = password.find(":"); if (pos == std::string::npos) { - alog("Error: enc_check_password() called with invalid password string (%s)", password.c_str()); + Alog() << "Error: enc_check_password() called with invalid password string (" << password << ")"; return 0; } hashm.assign(password.begin(), password.begin()+pos); |
