summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 18:00:54 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-08 18:00:54 +0000
commit1c1312624dfcdc9bbf4b7cb2c08b611411bfa7f6 (patch)
tree415c1959f9d090c0623056b2ee389c16a641c08b /src/core
parent608b63d979fe8c33f8b79569405cc242c9bccd3d (diff)
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/enc_md5.c2
-rw-r--r--src/core/enc_none.c2
-rw-r--r--src/core/enc_old.c2
-rw-r--r--src/core/enc_sha1.c2
4 files changed, 4 insertions, 4 deletions
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 );
}