diff options
| author | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2012-04-23 05:08:26 -0400 |
| commit | 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c (patch) | |
| tree | e145e04fa3d041cf92ce46da4ac790b63231059c /modules/encryption | |
| parent | 63c639e108a00d7dbb0d7ac9891684fc83a3b207 (diff) | |
Reworked live SQL support yet again
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 0831fea22..73bc29557 100644 --- a/modules/encryption/enc_md5.cpp +++ b/modules/encryption/enc_md5.cpp @@ -341,10 +341,10 @@ class EMD5 : public Module EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { - NickAlias *na = findnick(account); - NickCore *nc = na ? na->nc : NULL; + const NickAlias *na = findnick(account); if (na == NULL) return EVENT_CONTINUE; + NickCore *nc = na->nc; size_t pos = nc->pass.find(':'); if (pos == Anope::string::npos) diff --git a/modules/encryption/enc_none.cpp b/modules/encryption/enc_none.cpp index e528e821c..778ed6cba 100644 --- a/modules/encryption/enc_none.cpp +++ b/modules/encryption/enc_none.cpp @@ -43,10 +43,10 @@ class ENone : public Module EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { - NickAlias *na = findnick(account); - NickCore *nc = na ? na->nc : NULL; + const NickAlias *na = findnick(account); if (na == NULL) return EVENT_CONTINUE; + NickCore *nc = na->nc; size_t pos = nc->pass.find(':'); if (pos == Anope::string::npos) diff --git a/modules/encryption/enc_old.cpp b/modules/encryption/enc_old.cpp index 9b1dad701..9fba199dc 100644 --- a/modules/encryption/enc_old.cpp +++ b/modules/encryption/enc_old.cpp @@ -351,10 +351,10 @@ class EOld : public Module EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { - NickAlias *na = findnick(account); - NickCore *nc = na ? na->nc : NULL; + const NickAlias *na = findnick(account); if (na == NULL) return EVENT_CONTINUE; + NickCore *nc = na->nc; size_t pos = nc->pass.find(':'); if (pos == Anope::string::npos) diff --git a/modules/encryption/enc_sha1.cpp b/modules/encryption/enc_sha1.cpp index d5d49b63e..3735e65bc 100644 --- a/modules/encryption/enc_sha1.cpp +++ b/modules/encryption/enc_sha1.cpp @@ -194,10 +194,10 @@ class ESHA1 : public Module EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { - NickAlias *na = findnick(account); - NickCore *nc = na ? na->nc : NULL; + const NickAlias *na = findnick(account); if (na == NULL) return EVENT_CONTINUE; + NickCore *nc = na->nc; size_t pos = nc->pass.find(':'); if (pos == Anope::string::npos) diff --git a/modules/encryption/enc_sha256.cpp b/modules/encryption/enc_sha256.cpp index aa31dc9c3..b119eeba6 100644 --- a/modules/encryption/enc_sha256.cpp +++ b/modules/encryption/enc_sha256.cpp @@ -280,10 +280,10 @@ class ESHA256 : public Module EventReturn OnCheckAuthentication(Command *c, CommandSource *source, const std::vector<Anope::string> ¶ms, const Anope::string &account, const Anope::string &password) anope_override { - NickAlias *na = findnick(account); - NickCore *nc = na ? na->nc : NULL; + const NickAlias *na = findnick(account); if (na == NULL) return EVENT_CONTINUE; + NickCore *nc = na->nc; size_t pos = nc->pass.find(':'); if (pos == Anope::string::npos) |
