From 3e2ac3640d186004798269e6ca89938cb1da6f73 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 22 Oct 2011 11:35:31 -0400 Subject: Bug #1343 - don't allow recovering and ghosting enforcers --- modules/commands/ns_ghost.cpp | 2 ++ modules/commands/ns_recover.cpp | 2 ++ 2 files changed, 4 insertions(+) (limited to 'modules') diff --git a/modules/commands/ns_ghost.cpp b/modules/commands/ns_ghost.cpp index a03ca9a3f..02d073a12 100644 --- a/modules/commands/ns_ghost.cpp +++ b/modules/commands/ns_ghost.cpp @@ -34,6 +34,8 @@ class CommandNSGhost : public Command if (!user) source.Reply(NICK_X_NOT_IN_USE, nick.c_str()); + else if (user->server == Me) + source.Reply(_("\2%s\2 is a services enforcer."), user->nick.c_str()); else if (!na) source.Reply(NICK_X_NOT_REGISTERED, nick.c_str()); else if (na->nc->HasFlag(NI_SUSPENDED)) 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)) -- cgit