X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/f6f5f9c2c78f0e760b30b6ea759523f096653cac..43946961df9e7703c8877e4bbd9181507422429d:/modules/m_connect.c diff --git a/modules/m_connect.c b/modules/m_connect.c index ce15ef2d..d1b77a82 100644 --- a/modules/m_connect.c +++ b/modules/m_connect.c @@ -27,7 +27,7 @@ #include "stdinc.h" #include "client.h" #include "ircd.h" -#include "irc_string.h" +#include "match.h" #include "numeric.h" #include "s_conf.h" #include "s_newconf.h" @@ -98,12 +98,12 @@ mo_connect(struct Client *client_p, struct Client *source_p, int parc, const cha return 0; } - if(ServerConfSSL(server_p) && (!ssl_ok || !get_ssld_count())) - { - sendto_one_notice(source_p, - ":Connect: Server %s is set to use SSL/TLS but SSL/TLS is not configured.", - parv[1]); - return 0; + if(ServerConfSSL(server_p) && (!ssl_ok || !get_ssld_count())) + { + sendto_one_notice(source_p, + ":Connect: Server %s is set to use SSL/TLS but SSL/TLS is not configured.", + parv[1]); + return 0; } /* @@ -138,14 +138,8 @@ mo_connect(struct Client *client_p, struct Client *source_p, int parc, const cha */ if(serv_connect(server_p, source_p)) { -#ifndef HIDE_SERVERS_IPS - sendto_one_notice(source_p, ":*** Connecting to %s[%s].%d", - server_p->host, server_p->name, server_p->port); -#else sendto_one_notice(source_p, ":*** Connecting to %s.%d", server_p->name, server_p->port); -#endif - } else { @@ -200,12 +194,12 @@ ms_connect(struct Client *client_p, struct Client *source_p, int parc, const cha return 0; } - if(ServerConfSSL(server_p) && (!ssl_ok || !get_ssld_count())) - { - sendto_one_notice(source_p, - ":Connect: Server %s is set to use SSL/TLS but SSL/TLS is not configured.", - parv[1]); - return 0; + if(ServerConfSSL(server_p) && (!ssl_ok || !get_ssld_count())) + { + sendto_one_notice(source_p, + ":Connect: Server %s is set to use SSL/TLS but SSL/TLS is not configured.", + parv[1]); + return 0; } /* @@ -235,9 +229,6 @@ ms_connect(struct Client *client_p, struct Client *source_p, int parc, const cha sendto_server(NULL, NULL, CAP_TS6, NOCAPS, ":%s WALLOPS :Remote CONNECT %s %d from %s", me.id, parv[1], port, source_p->name); - sendto_server(NULL, NULL, NOCAPS, CAP_TS6, - ":%s WALLOPS :Remote CONNECT %s %d from %s", - me.name, parv[1], port, source_p->name); ilog(L_SERVER, "CONNECT From %s : %s %d", source_p->name, parv[1], port);