From 6febf74c3e7ae6e209d4927aa0452ccdf1bad6c0 Mon Sep 17 00:00:00 2001 From: w00t Date: Fri, 23 Dec 2005 07:36:08 +0000 Subject: 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 --- src/modules/m_alias.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src') 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 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) { -- cgit v1.2.3