"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "modules/m_connect.c" between
ircd-hybrid-8.2.27.tgz and ircd-hybrid-8.2.28.tgz

About: IRCD-Hybrid is a Internet Relay Chat server.

m_connect.c  (ircd-hybrid-8.2.27.tgz):m_connect.c  (ircd-hybrid-8.2.28.tgz)
skipping to change at line 24 skipping to change at line 24
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
* USA * USA
*/ */
/*! \file m_connect.c /*! \file m_connect.c
* \brief Includes required functions for processing the CONNECT command. * \brief Includes required functions for processing the CONNECT command.
* \version $Id: m_connect.c 9102 2020-01-01 09:58:57Z michael $ * \version $Id: m_connect.c 9199 2020-01-23 17:49:06Z michael $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "client.h" #include "client.h"
#include "ircd.h" #include "ircd.h"
#include "irc_string.h" #include "irc_string.h"
#include "numeric.h" #include "numeric.h"
#include "conf.h" #include "conf.h"
#include "log.h" #include "log.h"
#include "server.h" #include "server.h"
skipping to change at line 85 skipping to change at line 85
if (!HasOFlag(source_p, OPER_FLAG_CONNECT)) if (!HasOFlag(source_p, OPER_FLAG_CONNECT))
{ {
sendto_one_numeric(source_p, &me, ERR_NOPRIVS, "connect"); sendto_one_numeric(source_p, &me, ERR_NOPRIVS, "connect");
return; return;
} }
/* /*
* Try to find the name. If it fails, notify and bail. * Try to find the name. If it fails, notify and bail.
*/ */
struct MaskItem *conf; struct MaskItem *conf = connect_find(name, match);
if ((conf = connect_find(name, match)) == NULL) if (conf == NULL)
{ {
sendto_one_notice(source_p, &me, ":Connect: Server %s not listed in configur ation file", name); sendto_one_notice(source_p, &me, ":Connect: Server %s not listed in configur ation file", name);
return; return;
} }
const struct Client *target_p; const struct Client *target_p = hash_find_server(conf->name);
if ((target_p = hash_find_server(conf->name))) if (target_p)
{ {
sendto_one_notice(source_p, &me, ":Connect: Server %s already exists from %s ", sendto_one_notice(source_p, &me, ":Connect: Server %s already exists from %s ",
target_p->name, target_p->from->name); target_p->name, target_p->from->name);
return; return;
} }
if (find_servconn_in_progress(conf->name)) if (find_servconn_in_progress(conf->name))
{ {
sendto_one_notice(source_p, &me, ":Connect: a connection to %s is already in progress", sendto_one_notice(source_p, &me, ":Connect: a connection to %s is already in progress",
conf->name); conf->name);
skipping to change at line 163 skipping to change at line 163
sendto_one_numeric(source_p, &me, ERR_NEEDMOREPARAMS, "CONNECT"); sendto_one_numeric(source_p, &me, ERR_NEEDMOREPARAMS, "CONNECT");
return; return;
} }
if (server_hunt(source_p, ":%s CONNECT %s %s :%s", 3, parc, parv)->ret != HUNT ED_ISME) if (server_hunt(source_p, ":%s CONNECT %s %s :%s", 3, parc, parv)->ret != HUNT ED_ISME)
return; return;
/* /*
* Try to find the name. If it fails, notify and bail. * Try to find the name. If it fails, notify and bail.
*/ */
struct MaskItem *conf; struct MaskItem *conf = connect_find(name, match);
if ((conf = connect_find(name, match)) == NULL) if (conf == NULL)
{ {
sendto_one_notice(source_p, &me, ":Connect: Server %s not listed in configur ation file", name); sendto_one_notice(source_p, &me, ":Connect: Server %s not listed in configur ation file", name);
return; return;
} }
const struct Client *target_p; const struct Client *target_p = hash_find_server(conf->name);
if ((target_p = hash_find_server(conf->name))) if (target_p)
{ {
sendto_one_notice(source_p, &me, ":Connect: Server %s already exists from %s ", sendto_one_notice(source_p, &me, ":Connect: Server %s already exists from %s ",
target_p->name, target_p->from->name); target_p->name, target_p->from->name);
return; return;
} }
if (find_servconn_in_progress(conf->name)) if (find_servconn_in_progress(conf->name))
{ {
sendto_one_notice(source_p, &me, ":Connect: a connection to %s is already in progress", sendto_one_notice(source_p, &me, ":Connect: a connection to %s is already in progress",
conf->name); conf->name);
skipping to change at line 239 skipping to change at line 239
} }
static void static void
module_exit(void) module_exit(void)
{ {
mod_del_cmd(&connect_msgtab); mod_del_cmd(&connect_msgtab);
} }
struct module module_entry = struct module module_entry =
{ {
.version = "$Revision: 9102 $", .version = "$Revision: 9199 $",
.modinit = module_init, .modinit = module_init,
.modexit = module_exit, .modexit = module_exit,
}; };
 End of changes. 6 change blocks. 
10 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)