#include "modules.h"
#include "packet.h"
#include "tgchange.h"
+#include "s_newconf.h"
static const char invite_desc[] = "Provides /invite";
if(MyConnect(source_p))
{
- if (ConfigFileEntry.target_change && !IsOper(source_p) &&
+ if (ConfigFileEntry.target_change && !IsOperGeneral(source_p) &&
!find_allowing_channel(source_p, target_p) &&
!add_target(source_p, target_p))
{
}
add_reply_target(target_p, source_p);
- sendto_one(target_p, ":%s!%s@%s INVITE %s :%s",
- source_p->name, source_p->username, source_p->host,
- target_p->name, chptr->chname);
+ sendto_anywhere(target_p, source_p, "INVITE", ":%s", chptr->chname);
if(store_invite)
add_invite(chptr, target_p);