| 29 |
|
#include "numeric.h" |
| 30 |
|
#include "fdlist.h" |
| 31 |
|
#include "s_bsd.h" |
| 32 |
< |
#include "s_conf.h" |
| 33 |
< |
#include "s_log.h" |
| 32 |
> |
#include "conf.h" |
| 33 |
> |
#include "log.h" |
| 34 |
|
#include "s_serv.h" |
| 35 |
|
#include "send.h" |
| 36 |
|
#include "parse.h" |
| 138 |
|
/* |
| 139 |
|
* Notify all operators about remote connect requests |
| 140 |
|
*/ |
| 141 |
< |
ilog(L_TRACE, "CONNECT From %s : %s %s", |
| 141 |
> |
ilog(LOG_TYPE_IRCD, "CONNECT From %s : %s %s", |
| 142 |
|
source_p->name, parv[1], parv[2] ? parv[2] : ""); |
| 143 |
|
|
| 144 |
|
aconf->port = port; |
| 193 |
|
":%s CONNECT %s %s :%s", 3, parc, parv) != HUNTED_ISME) |
| 194 |
|
return; |
| 195 |
|
|
| 196 |
< |
if (*parv[1] == '\0') |
| 196 |
> |
if (EmptyString(parv[1])) |
| 197 |
|
{ |
| 198 |
|
sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), |
| 199 |
|
me.name, source_p->name, "CONNECT"); |
| 265 |
|
*/ |
| 266 |
|
sendto_wallops_flags(UMODE_WALLOP, &me, "Remote CONNECT %s %d from %s", |
| 267 |
|
parv[1], port, source_p->name); |
| 268 |
< |
sendto_server(NULL, NULL, NOCAPS, NOCAPS, |
| 268 |
> |
sendto_server(NULL, NOCAPS, CAP_TS6, |
| 269 |
|
":%s WALLOPS :Remote CONNECT %s %d from %s", |
| 270 |
|
me.name, parv[1], port, source_p->name); |
| 271 |
+ |
sendto_server(NULL, CAP_TS6, NOCAPS, |
| 272 |
+ |
":%s WALLOPS :Remote CONNECT %s %d from %s", |
| 273 |
+ |
me.id, parv[1], port, source_p->name); |
| 274 |
|
|
| 275 |
< |
ilog(L_TRACE, "CONNECT From %s : %s %d", |
| 275 |
> |
ilog(LOG_TYPE_IRCD, "CONNECT From %s : %s %d", |
| 276 |
|
source_p->name, parv[1], port); |
| 277 |
|
|
| 278 |
|
aconf->port = port; |