X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcmd_invite.cpp;h=0eb3a2354ccff70b1ad105fc96e71f36c9d806ce;hb=eb334f8c69872cc0de28ffd85b41555f196a23dd;hp=92c1909832617ac70a057bf186d90c63b995e166;hpb=d5e5e016f9e84f0c5ab1af3e94dd0280adecf088;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/cmd_invite.cpp b/src/cmd_invite.cpp index 92c190983..0eb3a2354 100644 --- a/src/cmd_invite.cpp +++ b/src/cmd_invite.cpp @@ -11,12 +11,13 @@ * --------------------------------------------------- */ +#include "inspircd.h" #include "configreader.h" #include "users.h" #include "modules.h" #include "commands/cmd_invite.h" -extern "C" command_t* init_command(InspIRCd* Instance) +extern "C" DllExport command_t* init_command(InspIRCd* Instance) { return new cmd_invite(Instance); } @@ -78,7 +79,7 @@ CmdResult cmd_invite::Handle (const char** parameters, int pcnt, userrec *user) u->WriteFrom(user,"INVITE %s :%s",u->nick,c->name); user->WriteServ("341 %s %s %s",user->nick,u->nick,c->name); if (ServerInstance->Config->AnnounceInvites) - c->WriteChannelWithServ(ServerInstance->Config->ServerName, "%s invited %s into the channel", user->nick, u->nick); + c->WriteChannelWithServ(ServerInstance->Config->ServerName, "NOTICE %s :*** %s invited %s into the channel", c->name, user->nick, u->nick); FOREACH_MOD(I_OnUserInvite,OnUserInvite(user,u,c)); } else