summaryrefslogtreecommitdiff
path: root/src/modules/m_sajoin.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-12-18 15:50:30 +0100
committerAttila Molnar <attilamolnar@hush.com>2013-12-18 15:50:30 +0100
commit132c7a7c670764c677e34b6dbc1bf8590e5b4066 (patch)
tree9208157a21f25fd3fe9c9ea4f1328870d4ee9325 /src/modules/m_sajoin.cpp
parent96d96c48bf5fcc1c6478f4631818e2af0ceed721 (diff)
Clean up error messages in a few SA commands
Diffstat (limited to 'src/modules/m_sajoin.cpp')
-rw-r--r--src/modules/m_sajoin.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/modules/m_sajoin.cpp b/src/modules/m_sajoin.cpp
index f586896de..9d1e34ff3 100644
--- a/src/modules/m_sajoin.cpp
+++ b/src/modules/m_sajoin.cpp
@@ -58,18 +58,10 @@ class CommandSajoin : public Command
if (localuser)
{
Channel* n = Channel::JoinUser(localuser, parameters[1], true);
- if (n)
+ if (n && n->HasUser(dest))
{
- if (n->HasUser(dest))
- {
- ServerInstance->SNO->WriteToSnoMask('a', user->nick+" used SAJOIN to make "+dest->nick+" join "+parameters[1]);
- return CMD_SUCCESS;
- }
- else
- {
- user->WriteNotice("*** Could not join "+dest->nick+" to "+parameters[1]+" (User is probably banned, or blocking modes)");
- return CMD_FAILURE;
- }
+ ServerInstance->SNO->WriteToSnoMask('a', user->nick+" used SAJOIN to make "+dest->nick+" join "+parameters[1]);
+ return CMD_SUCCESS;
}
else
{