From 1c1312624dfcdc9bbf4b7cb2c08b611411bfa7f6 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sun, 8 Nov 2009 18:00:54 +0000 Subject: Rewrote BuildStringList to use std::list instead of char** git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2632 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/enc_md5.c | 2 +- src/core/enc_none.c | 2 +- src/core/enc_old.c | 2 +- src/core/enc_sha1.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/core') diff --git a/src/core/enc_md5.c b/src/core/enc_md5.c index 103f4bbe7..d98792618 100644 --- a/src/core/enc_md5.c +++ b/src/core/enc_md5.c @@ -408,7 +408,7 @@ class EMD5 : public Module /* if we are NOT the first module in the list, * we want to re-encrypt the pass with the new encryption */ - if (stricmp(EncModuleList[0], this->name.c_str())) + if (stricmp(EncModuleList.begin()->c_str(), this->name.c_str())) { enc_encrypt(plaintext, strlen(password), password, PASSMAX -1 ); } diff --git a/src/core/enc_none.c b/src/core/enc_none.c index 99b3e17a4..a5e60e1e2 100644 --- a/src/core/enc_none.c +++ b/src/core/enc_none.c @@ -63,7 +63,7 @@ class ENone : public Module /* if we are NOT the first module in the list, * we want to re-encrypt the pass with the new encryption */ - if (stricmp(EncModuleList[0], this->name.c_str())) + if (stricmp(EncModuleList.begin()->c_str(), this->name.c_str())) { enc_encrypt(plaintext, strlen(password), password, PASSMAX -1 ); } diff --git a/src/core/enc_old.c b/src/core/enc_old.c index c3db6c4b3..d8f5dfdd5 100644 --- a/src/core/enc_old.c +++ b/src/core/enc_old.c @@ -409,7 +409,7 @@ class EOld : public Module /* when we are NOT the first module in the list, * we want to re-encrypt the pass with the new encryption */ - if (stricmp(EncModuleList[0], this->name.c_str())) + if (stricmp(EncModuleList.begin()->c_str(), this->name.c_str())) { enc_encrypt(plaintext, strlen(password), password, PASSMAX -1 ); } diff --git a/src/core/enc_sha1.c b/src/core/enc_sha1.c index 9c86875fe..87872241f 100644 --- a/src/core/enc_sha1.c +++ b/src/core/enc_sha1.c @@ -269,7 +269,7 @@ class ESHA1 : public Module /* when we are NOT the first module in the list, * we want to re-encrypt the pass with the new encryption */ - if (stricmp(EncModuleList[0], this->name.c_str())) + if (stricmp(EncModuleList.begin()->c_str(), this->name.c_str())) { enc_encrypt(plaintext, strlen(password), password, PASSMAX -1 ); } -- cgit