+class WhoisNoticeCmd : public Command
+{
+ public:
+ WhoisNoticeCmd(Module* Creator) : Command(Creator,"WHOISNOTICE", 1)
+ {
+ }
+
+ void HandleFast(User* dest, User* src)
+ {
+ dest->WriteServ("NOTICE %s :*** %s (%s@%s) did a /whois on you",
+ dest->nick.c_str(), src->nick.c_str(), src->ident.c_str(),
+ dest->HasPrivPermission("users/auspex") ? src->host.c_str() : src->dhost.c_str());
+ }
+
+ CmdResult Handle(const std::vector<std::string> ¶meters, User *user)
+ {
+ User* dest = ServerInstance->FindNick(parameters[0]);
+
+ if (IS_LOCAL(dest))
+ HandleFast(dest, user);
+
+ return CMD_SUCCESS;
+ }
+};
+