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