diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-23 07:36:08 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-23 07:36:08 +0000 |
commit | 6febf74c3e7ae6e209d4927aa0452ccdf1bad6c0 (patch) | |
tree | f54057928046c79957694ac8a515b806a2de90a6 | |
parent | b787a6eb844e2f83b9da32cbc5e4488a80c343d7 (diff) |
Small change to logic in m_alias, tidies an if (). Minor change.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2640 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/modules/m_alias.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp index 59492c828..57532fc6b 100644 --- a/src/modules/m_alias.cpp +++ b/src/modules/m_alias.cpp @@ -40,8 +40,6 @@ class ModuleAlias : public Module ConfigReader *MyConf; std::vector<Alias> Aliases; - /* XXX - small issue, why is this marked public when it's not (really) intended for external use - * Fixed 30/11/05 by Brain as suggestion by w00t */ virtual void ReadAliases() { Aliases.clear(); @@ -100,12 +98,11 @@ class ModuleAlias : public Module if (Aliases[i].requires != "") { u = Srv->FindNick(Aliases[i].requires); - } - - if ((Aliases[i].requires != "") && (!u)) - { - Srv->SendServ(user->fd,"401 "+std::string(user->nick)+" "+Aliases[i].requires+" :is currently unavailable. Please try again later."); - return 1; + if (!u) + { + Srv->SendServ(user->fd,"401 "+std::string(user->nick)+" "+Aliases[i].requires+" :is currently unavailable. Please try again later."); + return 1; + } } if (Aliases[i].uline) { |