diff options
| author | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-11-22 00:50:33 -0500 |
| commit | d33a0f75a5c0c584fbb7cc0076da36d494f39494 (patch) | |
| tree | 7b2274cc833c793c0f5595660cbd4d715de52ffd /modules/encryption | |
| parent | 368d469631763e9c8bf399980d0ac7c5b5664d39 (diff) | |
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each
other
Diffstat (limited to 'modules/encryption')
| -rw-r--r-- | modules/encryption/enc_md5.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_none.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_old.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha1.cpp | 4 | ||||
| -rw-r--r-- | modules/encryption/enc_sha256.cpp | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/modules/encryption/enc_md5.cpp b/modules/encryption/enc_md5.cpp index bcbe4aeed..45c7f3df5 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -341,7 +341,7 @@ class EMD5 : public Module void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override { - const NickAlias *na = findnick(req->GetAccount()); + const NickAlias *na = NickAlias::Find(req->GetAccount()); if (na == NULL) return; NickCore *nc = na->nc; @@ -361,7 +361,7 @@ class EMD5 : public Module * we want to re-encrypt the pass with the new encryption */ if (ModuleManager::FindFirstOf(ENCRYPTION) != this) - enc_encrypt(req->GetPassword(), nc->pass); + Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } } diff --git a/modules/encryption/enc_none.cpp b/modules/encryption/enc_none.cpp index 9496939fd..4854e5eb0 100644 --- a/modules/encryption/enc_none.cpp +++ b/modules/encryption/enc_none.cpp @@ -43,7 +43,7 @@ class ENone : public Module void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override { - const NickAlias *na = findnick(req->GetAccount()); + const NickAlias *na = NickAlias::Find(req->GetAccount()); if (na == NULL) return; NickCore *nc = na->nc; @@ -63,7 +63,7 @@ class ENone : public Module * we want to re-encrypt the pass with the new encryption */ if (ModuleManager::FindFirstOf(ENCRYPTION) != this) - enc_encrypt(req->GetPassword(), nc->pass); + Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } } diff --git a/modules/encryption/enc_old.cpp b/modules/encryption/enc_old.cpp index b5ce86540..f7c83515d 100644 --- a/modules/encryption/enc_old.cpp +++ b/modules/encryption/enc_old.cpp @@ -351,7 +351,7 @@ class EOld : public Module void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override { - const NickAlias *na = findnick(req->GetAccount()); + const NickAlias *na = NickAlias::Find(req->GetAccount()); if (na == NULL) return; NickCore *nc = na->nc; @@ -371,7 +371,7 @@ class EOld : public Module * we want to re-encrypt the pass with the new encryption */ if (ModuleManager::FindFirstOf(ENCRYPTION) != this) - enc_encrypt(req->GetPassword(), nc->pass); + Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } } diff --git a/modules/encryption/enc_sha1.cpp b/modules/encryption/enc_sha1.cpp index 28d216972..88571d776 100644 --- a/modules/encryption/enc_sha1.cpp +++ b/modules/encryption/enc_sha1.cpp @@ -194,7 +194,7 @@ class ESHA1 : public Module void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override { - const NickAlias *na = findnick(req->GetAccount()); + const NickAlias *na = NickAlias::Find(req->GetAccount()); if (na == NULL) return; NickCore *nc = na->nc; @@ -211,7 +211,7 @@ class ESHA1 : public Module if (nc->pass.equals_cs(buf)) { if (ModuleManager::FindFirstOf(ENCRYPTION) != this) - enc_encrypt(req->GetPassword(), nc->pass); + Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } } diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index 36eaa98fc..396f975ed 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -280,7 +280,7 @@ class ESHA256 : public Module void OnCheckAuthentication(User *, IdentifyRequest *req) anope_override { - const NickAlias *na = findnick(req->GetAccount()); + const NickAlias *na = NickAlias::Find(req->GetAccount()); if (na == NULL) return; NickCore *nc = na->nc; @@ -303,7 +303,7 @@ class ESHA256 : public Module * we want to re-encrypt the pass with the new encryption */ if (ModuleManager::FindFirstOf(ENCRYPTION) != this) - enc_encrypt(req->GetPassword(), nc->pass); + Anope::Encrypt(req->GetPassword(), nc->pass); req->Success(this); } } |
