From c742276f84162a49685636449a207be21056a013 Mon Sep 17 00:00:00 2001 From: special Date: Sat, 28 Oct 2006 04:55:46 +0000 Subject: 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 --- src/modules/m_sajoin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules') 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; } }; -- cgit v1.2.3