summaryrefslogtreecommitdiff
path: root/modules/commands/os_jupe.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-08-07 15:03:11 +0000
committerAdam <Adam@anope.org>2013-08-07 15:03:11 +0000
commit1efd289488ca16c895f833cded995d34b95daae1 (patch)
treea5c3832cb2e7400c8e34344702db6d7373d20dac /modules/commands/os_jupe.cpp
parent83e4b183eafdcf7cef1eba4dadf1d1de86c59457 (diff)
Fix inspircd jupe mess again, it wasn't working when juping servers that didn't already exist
Diffstat (limited to 'modules/commands/os_jupe.cpp')
-rw-r--r--modules/commands/os_jupe.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/commands/os_jupe.cpp b/modules/commands/os_jupe.cpp
index de6fa76f4..f631bac41 100644
--- a/modules/commands/os_jupe.cpp
+++ b/modules/commands/os_jupe.cpp
@@ -28,8 +28,10 @@ class CommandOSJupe : public Command
if (!IRCD->IsHostValid(jserver) || jserver.find('.') == Anope::string::npos)
source.Reply(_("Please use a valid server name when juping."));
- else if (server && (server == Me || server == Me->GetLinks().front()))
+ else if (server == Me || server == Servers::GetUplink())
source.Reply(_("You can not jupe your Services' pseudoserver or your uplink server."));
+ else if (server && server->IsJuped())
+ source.Reply(_("You can not jupe an already juped server."));
else
{
Anope::string rbuf = "Juped by " + source.GetNick() + (!reason.empty() ? ": " + reason : "");
@@ -45,7 +47,6 @@ class CommandOSJupe : public Command
Log(LOG_ADMIN, source, this) << "on " << jserver << " (" << rbuf << ")";
}
- return;
}
bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override