diff options
Diffstat (limited to 'modules/encryption/enc_none.cpp')
-rw-r--r-- | modules/encryption/enc_none.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) |