#include <openssl/rsa.h>
#endif
-#include "tools.h"
#include "s_serv.h"
#include "class.h"
#include "client.h"
#include "common.h"
-#include "event.h"
#include "hash.h"
#include "irc_string.h"
#include "sprintf_irc.h"
#include "numeric.h"
#include "packet.h"
#include "res.h"
-#include "commio.h"
#include "s_conf.h"
#include "s_newconf.h"
#include "s_log.h"
#include "scache.h"
#include "send.h"
#include "client.h"
-#include "memory.h"
#include "channel.h" /* chcap_usage_counts stuff... */
#include "hook.h"
#include "msg.h"
rb_dlink_node *ptr;
struct Client *target_p;
- DLINK_FOREACH(ptr, serv_list.head)
+ RB_DLINK_FOREACH(ptr, serv_list.head)
{
target_p = ptr->data;
if(IsCapable(target_p, CAP_ZIP))
{
target_p = NULL;
- DLINK_FOREACH(ptr, global_client_list.head)
+ RB_DLINK_FOREACH(ptr, global_client_list.head)
{
if(match(new, ((struct Client *) (ptr->data))->name))
{
int confrq = 0;
time_t next = 0;
- DLINK_FOREACH(ptr, server_conf_list.head)
+ RB_DLINK_FOREACH(ptr, server_conf_list.head)
{
tmp_p = ptr->data;
if(strlen(name) > HOSTLEN)
return -4;
- DLINK_FOREACH(ptr, server_conf_list.head)
+ RB_DLINK_FOREACH(ptr, server_conf_list.head)
{
tmp_p = ptr->data;
mp = mbuf;
pp = pbuf;
- DLINK_FOREACH(ptr, list->head)
+ RB_DLINK_FOREACH(ptr, list->head)
{
banptr = ptr->data;
tlen = strlen(banptr->banstr) + 3;
me.id, (long) chptr->channelts, chptr->chname, flag);
t = buf + mlen;
- DLINK_FOREACH(ptr, list->head)
+ RB_DLINK_FOREACH(ptr, list->head)
{
banptr = ptr->data;
hclientinfo.client = hchaninfo.client = client_p;
- DLINK_FOREACH(ptr, global_client_list.head)
+ RB_DLINK_FOREACH(ptr, global_client_list.head)
{
target_p = ptr->data;
call_hook(h_burst_client, &hclientinfo);
}
- DLINK_FOREACH(ptr, global_channel_list.head)
+ RB_DLINK_FOREACH(ptr, global_channel_list.head)
{
chptr = ptr->data;
t = buf + mlen;
- DLINK_FOREACH(uptr, chptr->members.head)
+ RB_DLINK_FOREACH(uptr, chptr->members.head)
{
msptr = uptr->data;
hclientinfo.client = hchaninfo.client = client_p;
- DLINK_FOREACH(ptr, global_client_list.head)
+ RB_DLINK_FOREACH(ptr, global_client_list.head)
{
target_p = ptr->data;
call_hook(h_burst_client, &hclientinfo);
}
- DLINK_FOREACH(ptr, global_channel_list.head)
+ RB_DLINK_FOREACH(ptr, global_channel_list.head)
{
chptr = ptr->data;
t = buf + mlen;
- DLINK_FOREACH(uptr, chptr->members.head)
+ RB_DLINK_FOREACH(uptr, chptr->members.head)
{
msptr = uptr->data;
if(client_p->localClient->passwd)
{
memset(client_p->localClient->passwd, 0, strlen(client_p->localClient->passwd));
- MyFree(client_p->localClient->passwd);
+ rb_free(client_p->localClient->passwd);
client_p->localClient->passwd = NULL;
}
if(client_p->localClient->fullcaps)
{
DupString(client_p->serv->fullcaps, client_p->localClient->fullcaps);
- MyFree(client_p->localClient->fullcaps);
+ rb_free(client_p->localClient->fullcaps);
client_p->localClient->fullcaps = NULL;
}
** need to send different names to different servers
** (domain name matching) Send new server to other servers.
*/
- DLINK_FOREACH(ptr, serv_list.head)
+ RB_DLINK_FOREACH(ptr, serv_list.head)
{
target_p = ptr->data;
** see previous *WARNING*!!! (Also, original inpath
** is destroyed...)
*/
- DLINK_FOREACH(ptr, global_serv_list.head)
+ RB_DLINK_FOREACH(ptr, global_serv_list.head)
{
target_p = ptr->data;