]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - modules/m_services.c
Change over some dlink functions.
[irc/rqf/shadowircd.git] / modules / m_services.c
index f124fc45f5e86232bf710ff55e39b70b5d93d393..81326bfbddb981e93fa4fa9011424e9a6ff19d5d 100644 (file)
@@ -237,7 +237,7 @@ me_rsfnc(struct Client *client_p, struct Client *source_p,
 
        del_all_accepts(target_p);
 
-       comm_note(target_p->localClient->fd, "Nick: %s", target_p->name);
+       rb_note(target_p->localClient->F->fd, "Nick: %s", target_p->name);
        return 0;
 }
 
@@ -259,7 +259,7 @@ me_nickdelay(struct Client *client_p, struct Client *source_p, int parc, const c
        duration = atoi(parv[1]);
        if (duration <= 0)
        {
-               nd = hash_find_nd(parv[2]);
+               nd = irc_dictionary_retrieve(nd_dict, parv[2]);
                if (nd != NULL)
                        free_nd_entry(nd);
        }
@@ -268,7 +268,7 @@ me_nickdelay(struct Client *client_p, struct Client *source_p, int parc, const c
                if (duration > 86400)
                        duration = 86400;
                add_nd_entry(parv[2]);
-               nd = hash_find_nd(parv[2]);
+               nd = irc_dictionary_retrieve(nd_dict, parv[2]);
                if (nd != NULL)
                        nd->expire = CurrentTime + duration;
        }
@@ -279,9 +279,9 @@ me_nickdelay(struct Client *client_p, struct Client *source_p, int parc, const c
 static void
 h_svc_server_introduced(hook_data_client *hdata)
 {
-       dlink_node *ptr;
+       rb_dlink_node *ptr;
 
-       DLINK_FOREACH(ptr, service_list.head)
+       RB_DLINK_FOREACH(ptr, service_list.head)
        {
                if(!irccmp((const char *) ptr->data, hdata->target->name))
                {
@@ -317,11 +317,11 @@ static void
 h_svc_stats(hook_data_int *data)
 {
        char statchar = (char) data->arg2;
-       dlink_node *ptr;
+       rb_dlink_node *ptr;
 
        if (statchar == 'U' && IsOper(data->client))
        {
-               DLINK_FOREACH(ptr, service_list.head)
+               RB_DLINK_FOREACH(ptr, service_list.head)
                {
                        sendto_one_numeric(data->client, RPL_STATSULINE,
                                                form_str(RPL_STATSULINE),