[IRC-Dev CVS] SF.net SVN: irc-dev:[220] ircd/trunk/ircd/m_server.c
Brought to you by:
zolty
|
From: <zo...@us...> - 2008-10-25 15:34:05
|
Revision: 220
http://irc-dev.svn.sourceforge.net/irc-dev/?rev=220&view=rev
Author: zolty
Date: 2008-10-25 15:33:58 +0000 (Sat, 25 Oct 2008)
Log Message:
-----------
Correcciones soporte minimi P09 de transicion
Modified Paths:
--------------
ircd/trunk/ircd/m_server.c
Modified: ircd/trunk/ircd/m_server.c
===================================================================
--- ircd/trunk/ircd/m_server.c 2008-10-25 12:09:09 UTC (rev 219)
+++ ircd/trunk/ircd/m_server.c 2008-10-25 15:33:58 UTC (rev 220)
@@ -560,17 +560,8 @@
if (!prot)
return exit_client_msg(cptr, sptr, &me, "Bogus protocol (%s)", parv[5]);
else if (prot < atoi(MINOR_PROTOCOL))
-#if 1 /* TRANSICION IRC-HISPANO */
- {
- prot = atoi(MINOR_PROTOCOL);
- /* Los P09 siempre son Services y hub */
- SetService(cptr);
- SetHub(cptr);
- }
-#else
return exit_new_server(cptr, sptr, host, timestamp,
"Incompatible protocol: %s", parv[5]);
-#endif /* TRANSICION IRC-HISPANO */
Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age %Tu (%Tu)",
host, parv[4], start_timestamp, cli_serv(&me)->timestamp));
@@ -682,6 +673,9 @@
unsigned short prot;
time_t start_timestamp;
time_t timestamp;
+#if 1 /* TRANSICION IRC-HISPANO */
+ int IsP09 = 0;
+#endif
if (parc < 8)
{
@@ -707,7 +701,7 @@
return exit_client_msg(cptr, sptr, &me, "Bogus protocol (%s)", parv[5]);
else if (prot < atoi(MINOR_PROTOCOL))
#if 1 /* TRANSICION IRC-HISPANO */
- prot = atoi(MINOR_PROTOCOL);
+ IsP09 = 1;
#else
return exit_new_server(cptr, sptr, host, timestamp,
"Incompatible protocol: %s", parv[5]);
@@ -751,6 +745,15 @@
if (*parv[7] == '+')
set_server_flags(acptr, parv[7] + 1);
+
+#if 1 /* TRANSICION IRC-HISPANO */
+ if (IsP09)
+ {
+ *parv[5] = 'P';
+ sendto_opmask(0, SNO_NETWORK, "Net junction: %s %s",
+ cli_name(sptr), cli_name(acptr));
+ }
+#endif
Count_newremoteserver(UserStats);
add_client_to_list(acptr);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|