summaryrefslogtreecommitdiff
path: root/modules/commands/ns_recover.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-22 11:35:31 -0400
committerAdam <Adam@anope.org>2011-10-22 11:35:31 -0400
commit3e2ac3640d186004798269e6ca89938cb1da6f73 (patch)
tree0b08df5e29491dffed1db60b3aa67fffe308df57 /modules/commands/ns_recover.cpp
parentc8b3809fc93bfcccb354248c17467da9b69e0ebd (diff)
Bug #1343 - don't allow recovering and ghosting enforcers
Diffstat (limited to 'modules/commands/ns_recover.cpp')
-rw-r--r--modules/commands/ns_recover.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp
index a6761db51..fac796c5d 100644
--- a/modules/commands/ns_recover.cpp
+++ b/modules/commands/ns_recover.cpp
@@ -53,6 +53,8 @@ class CommandNSRecover : public Command
User *u2;
if (!(u2 = finduser(nick)))
source.Reply(NICK_X_NOT_IN_USE, nick.c_str());
+ else if (u2->server == Me)
+ source.Reply(_("\2%s\2 has already been recovered."), u2->nick.c_str());
else if (!(na = findnick(u2->nick)))
source.Reply(NICK_X_NOT_REGISTERED, nick.c_str());
else if (na->nc->HasFlag(NI_SUSPENDED))