summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-23 07:36:08 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-23 07:36:08 +0000
commit6febf74c3e7ae6e209d4927aa0452ccdf1bad6c0 (patch)
treef54057928046c79957694ac8a515b806a2de90a6 /src/modules
parentb787a6eb844e2f83b9da32cbc5e4488a80c343d7 (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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_alias.cpp13
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)
{