*** ../ircu2.10.06/ircd/channel.c Tue Oct 5 12:20:16 1999 --- ../ircu2.10.06+/ircd/channel.c Tue Oct 5 12:24:25 1999 *************** *** 2757,2764 **** /* queridos remotos, ahora os comereis un modo OP */ sendto_lowprot_butone(cptr, 9, ":%s BMODE %s %s +o %s", me.name, DBH_CHANSERV, chptr->chname, sptr->name ); ! sendto_highprot_butone(cptr, 10, "%c BMODE %s %s +o %c%c%c", ! me.yxx[0], DBH_CHANSERV, chptr->chname, NumNick(sptr) ); /* queridos usuarios, ahora os tomo el pelo como a chinos */ sendto_channel_butserv(chptr, NULL, ":%s MODE %s +o %s", --- 2757,2764 ---- /* queridos remotos, ahora os comereis un modo OP */ sendto_lowprot_butone(cptr, 9, ":%s BMODE %s %s +o %s", me.name, DBH_CHANSERV, chptr->chname, sptr->name ); ! sendto_highprot_butone(cptr, 10, "%s BMODE %s %s +o %c%c%c", ! NumServ(&me), DBH_CHANSERV, chptr->chname, NumNick(sptr) ); /* queridos usuarios, ahora os tomo el pelo como a chinos */ sendto_channel_butserv(chptr, NULL, ":%s MODE %s +o %s", *** ../ircu2.10.06/ircd/s_bsd.c Tue Oct 5 12:26:26 1999 --- ../ircu2.10.06+/ircd/s_bsd.c Tue Oct 5 12:27:57 1999 *************** *** 992,998 **** my_name_for_link(me.name, aconf), me.serv->timestamp, newts, MAJOR_PROTOCOL, NumServCap(&me), me.info); #ifdef DB_ESNET ! sendto_one(cptr,"%c DB * 0 J %lu",me.yxx[0],tabla_serie[ESNET_NICKDB]); #endif #ifdef DB_HISPANO --- 992,998 ---- my_name_for_link(me.name, aconf), me.serv->timestamp, newts, MAJOR_PROTOCOL, NumServCap(&me), me.info); #ifdef DB_ESNET ! sendto_one(cptr,"%s DB * 0 J %lu",NumServ(&me),tabla_serie[ESNET_NICKDB]); #endif #ifdef DB_HISPANO *************** *** 1019,1026 **** if(!tabla_residente[i]) continue; /* Nodo->Hub: solo residentes */ #endif /* !HUB */ ! sendto_one(cptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, (char)i, tabla_version[i], tabla_serie[i]); } } #endif /* DB_HISPANO */ --- 1019,1026 ---- if(!tabla_residente[i]) continue; /* Nodo->Hub: solo residentes */ #endif /* !HUB */ ! sendto_one(cptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, (char)i, tabla_version[i], tabla_serie[i]); } } #endif /* DB_HISPANO */ *** ../ircu2.10.06/ircd/s_debug.c Tue Oct 5 12:35:53 1999 --- ../ircu2.10.06+/ircd/s_debug.c Tue Oct 5 12:36:26 1999 *************** *** 191,197 **** '-', #endif #endif ! 'D','B','1','0', #ifdef DB_ESNET '+', #else --- 191,197 ---- '-', #endif #endif ! 'D','B','1','1', #ifdef DB_ESNET '+', #else *** ../ircu2.10.06/ircd/s_serv.c Tue Oct 5 12:28:44 1999 --- ../ircu2.10.06+/ircd/s_serv.c Tue Oct 5 12:42:41 1999 *************** *** 829,835 **** cptr->serv->timestamp, MAJOR_PROTOCOL, NumServCap(&me), (me.info[0]) ? (me.info) : "IRCers United"); #ifdef DB_ESNET ! sendto_one(cptr,"%c DB * 0 J %lu",me.yxx[0],tabla_serie[ESNET_NICKDB]); #endif #ifdef DB_HISPANO /* --- 829,835 ---- cptr->serv->timestamp, MAJOR_PROTOCOL, NumServCap(&me), (me.info[0]) ? (me.info) : "IRCers United"); #ifdef DB_ESNET ! sendto_one(cptr,"%s DB * 0 J %lu",NumServ(&me),tabla_serie[ESNET_NICKDB]); #endif #ifdef DB_HISPANO /* *************** *** 855,862 **** if(!tabla_residente[i]) continue; /* Nodo->Hub: solo residentes */ #endif /* !HUB */ ! sendto_one(cptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, (char)i, tabla_version[i], tabla_serie[i]); } } #endif /* DB_HISPANO */ --- 855,862 ---- if(!tabla_residente[i]) continue; /* Nodo->Hub: solo residentes */ #endif /* !HUB */ ! sendto_one(cptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, (char)i, tabla_version[i], tabla_serie[i]); } } #endif /* DB_HISPANO */ *************** *** 1638,1644 **** db=atol(parv[4]); switch(*parv[3]) { case 'B': ! if(es_hub) sendto_one(sptr,"%c DB %s 0 J %lu",me.yxx[0],parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; --- 1638,1644 ---- db=atol(parv[4]); switch(*parv[3]) { case 'B': ! if(es_hub) sendto_one(sptr,"%s DB %s 0 J %lu",NumServ(&me),parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; *************** *** 1666,1681 **** *p3++='\0'; p4=strchr(p3,' '); if(p4==NULL) { ! sendto_one(sptr,"%c DB %s %s %s %s",me.yxx[0],p,db_buf,p2,p3); } else { *p4++='\0'; ! sendto_one(sptr,"%c DB %s %s %s %s :%s",me.yxx[0],p,db_buf,p2,p3,p4); } if(!(--cont)) break; } while(leer_db(db_file,db_buf)!=-1); close(db_file); if(cont) sptr->serv->esnet_db=!0; ! else sendto_one(sptr,"%c DB %s 0 B %lu",me.yxx[0],parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; } --- 1666,1681 ---- *p3++='\0'; p4=strchr(p3,' '); if(p4==NULL) { ! sendto_one(sptr,"%s DB %s %s %s %s",NumNick(&me),p,db_buf,p2,p3); } else { *p4++='\0'; ! sendto_one(sptr,"%s DB %s %s %s %s :%s",NumNick(&me),p,db_buf,p2,p3,p4); } if(!(--cont)) break; } while(leer_db(db_file,db_buf)!=-1); close(db_file); if(cont) sptr->serv->esnet_db=!0; ! else sendto_one(sptr,"%s DB %s 0 B %lu",NumNick(&me),parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; } *************** *** 1706,1712 **** close(db_file); borrar_db(); } ! sendto_one(sptr,"%c DB %s 0 q %lu HASH\n",me.yxx[0],parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; } --- 1706,1712 ---- close(db_file); borrar_db(); } ! sendto_one(sptr,"%s DB %s 0 q %lu HASH\n",NumServ(&me),parv[0],tabla_serie[ESNET_NICKDB]); return 0; break; } *************** *** 2155,2162 **** } /* le contestamos con 0 J para que continue */ ! sendto_one(sptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; --- 2155,2162 ---- } /* le contestamos con 0 J para que continue */ ! sendto_one(sptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; *************** *** 2182,2189 **** /* le contestamos con 0 J para que continue o pare */ /* y al resto de nodos para que se enteren de la nueva version */ for(lp=me.serv->down; lp; lp=lp->next) ! sendto_one(sptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, tabla, tabla_version[tabla], 0 ); break; } --- 2182,2189 ---- /* le contestamos con 0 J para que continue o pare */ /* y al resto de nodos para que se enteren de la nueva version */ for(lp=me.serv->down; lp; lp=lp->next) ! sendto_one(sptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, tabla, tabla_version[tabla], 0 ); break; } *************** *** 2192,2199 **** /* el nodo es un mamon, con version superior, ordeno borrado */ /* tambien podria ser ke yo me perdiera algo, pero ... shit hapens */ dbh_violacion(parc, parv, "Nodo con version Superior. Borrando DB remota ..."); ! sendto_one(sptr,"%c %s %s 0 D %c %lu", ! me.yxx[0],MSG_DBH,parv[0], tabla, tabla_version[tabla]); break; } --- 2192,2199 ---- /* el nodo es un mamon, con version superior, ordeno borrado */ /* tambien podria ser ke yo me perdiera algo, pero ... shit hapens */ dbh_violacion(parc, parv, "Nodo con version Superior. Borrando DB remota ..."); ! sendto_one(sptr,"%s %s %s 0 D %c %lu", ! NumServ(&me),MSG_DBH,parv[0], tabla, tabla_version[tabla]); break; } *************** *** 2227,2242 **** reg=dbh_leer_registro(db_file, i); if(reg) { ! sendto_one(sptr,"%c %s %s", ! me.yxx[0],MSG_DBH,reg); } } dbh_cerrar_tabla(db_file); /* Enviamos el '0 B' para que el otro se entere si hemos terminado */ ! sendto_one(sptr, "%c %s - 0 B %c %lu %lu", ! me.yxx[0], MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); #endif /* HUB */ --- 2227,2242 ---- reg=dbh_leer_registro(db_file, i); if(reg) { ! sendto_one(sptr,"%s %s %s", ! NumServ(&me),MSG_DBH,reg); } } dbh_cerrar_tabla(db_file); /* Enviamos el '0 B' para que el otro se entere si hemos terminado */ ! sendto_one(sptr, "%s %s - 0 B %c %lu %lu", ! NumServ(&me), MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); #endif /* HUB */ *************** *** 2323,2330 **** /* bueno, este 0 Q es para mí (o wilcard), a contestar ... */ tabla=*parv[4]; ! sendto_one(sptr,"%c %s %s 0 q %c %lu %lu %lu\n", ! me.yxx[0],MSG_DBH,parv[0], tabla, tabla_version[tabla], tabla_serie[tabla], dbh_hash_tabla(tabla) ); break; --- 2323,2330 ---- /* bueno, este 0 Q es para mí (o wilcard), a contestar ... */ tabla=*parv[4]; ! sendto_one(sptr,"%s %s %s 0 q %c %lu %lu %lu\n", ! NumServ(&me),MSG_DBH,parv[0], tabla, tabla_version[tabla], tabla_serie[tabla], dbh_hash_tabla(tabla) ); break; *************** *** 2364,2371 **** dbh_borrar_tabla(tabla, numversion); /* envio un 0 J para solicitar registros nuevos */ ! sendto_one(sptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; --- 2364,2371 ---- dbh_borrar_tabla(tabla, numversion); /* envio un 0 J para solicitar registros nuevos */ ! sendto_one(sptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; *************** *** 2401,2408 **** hash=atol(parv[7]); dbh_compactar_tabla(tabla,numversion,numserie,hash); /* Enviamos el '0 J' para informar / pedir mas */ ! sendto_one(sptr, "%c %s - 0 J %c %lu %lu", ! me.yxx[0], MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; --- 2401,2408 ---- hash=atol(parv[7]); dbh_compactar_tabla(tabla,numversion,numserie,hash); /* Enviamos el '0 J' para informar / pedir mas */ ! sendto_one(sptr, "%s %s - 0 J %c %lu %lu", ! NumServ(&me), MSG_DBH, tabla, tabla_version[tabla], tabla_serie[tabla] ); break; *** ../ircu2.10.06/ircd/s_user.c Tue Oct 5 12:37:04 1999 --- ../ircu2.10.06+/ircd/s_user.c Tue Oct 5 12:41:37 1999 *************** *** 3380,3387 **** v[1]=base64toint(hash+6); /* clave */ ! k[0]=(long)acptr->ip.s_addr; ! k[1]=(long)((acptr->yxx[0]<<24)+(acptr->yxx[1]<<16)+(acptr->yxx[2]<<8)+ts); tea(v,k,x); --- 3380,3387 ---- v[1]=base64toint(hash+6); /* clave */ ! k[0]=(unsigned long)acptr->ip.s_addr; ! k[1]=(unsigned long)(base64toint(acptr->yxx)+ts); tea(v,k,x);