X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_invite.cpp;h=9c2c2644212818ddefe7406de7c4c70e056707d6;hb=2e28b264afa667923b6c17d88ffcb12315309936;hp=a6e82d281de98cd8e3bab2ce8faf2985b3341286;hpb=d58d9fb4957168c134ae1e89005ff03154366a2a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp index a6e82d281..9c2c26442 100644 --- a/src/cmd_invite.cpp +++ b/src/cmd_invite.cpp @@ -12,9 +12,6 @@ */ #include "inspircd.h" -#include "configreader.h" -#include "users.h" -#include "modules.h" #include "commands/cmd_invite.h" extern "C" DllExport command_t* init_command(InspIRCd* Instance) @@ -86,6 +83,12 @@ CmdResult cmd_invite::Handle (const char** parameters, int pcnt, userrec *user) case ServerConfig::INVITE_ANNOUNCE_OPS: c->WriteAllExceptSender(user, true, '@', "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick); break; + case ServerConfig::INVITE_ANNOUNCE_DYNAMIC: + if (c->IsModeSet('i')) + c->WriteAllExceptSender(user, true, '@', "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick); + else + c->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick); + break; default: /* Nobody */ break;