summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 04:55:46 +0000
committerspecial <special@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 04:55:46 +0000
commitc742276f84162a49685636449a207be21056a013 (patch)
tree157a4e83a793bc619b635a7d273f48c9d31d70cf
parentbfdb4a75ff77278b6f9819677ffc94d877f4d62a (diff)
Return CMD_FAILURE from sajoin when given an invalid nickname (thanks Ares)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5557 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_sajoin.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index 494d255df..d7c5828bb 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -76,9 +76,11 @@ class cmd_sajoin : public command_t
user->WriteServ("NOTICE "+std::string(user->nick)+" :*** Could not join "+std::string(dest->nick)+" to "+parameters[1]);
return CMD_FAILURE;
}
+
+ return CMD_SUCCESS;
}
-
- return CMD_SUCCESS;
+ else
+ return CMD_FAILURE;
}
};