X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/5366977b4f3c7a50d170bf7a1e29b14c74944db7..7de46f2b43b2f9dc7424e7b7339e614a4bb658cd:/modules/m_restart.c diff --git a/modules/m_restart.c b/modules/m_restart.c index 04ef906..9dfae77 100644 --- a/modules/m_restart.c +++ b/modules/m_restart.c @@ -58,7 +58,7 @@ static int mo_restart(struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) { char buf[BUFSIZE]; - dlink_node *ptr; + rb_dlink_node *ptr; struct Client *target_p; if(!IsOperDie(source_p)) @@ -79,14 +79,14 @@ mo_restart(struct Client *client_p, struct Client *source_p, int parc, const cha return 0; } - DLINK_FOREACH(ptr, lclient_list.head) + RB_DLINK_FOREACH(ptr, lclient_list.head) { target_p = ptr->data; sendto_one_notice(target_p, ":Server Restarting. %s", get_client_name(source_p, HIDE_IP)); } - DLINK_FOREACH(ptr, serv_list.head) + RB_DLINK_FOREACH(ptr, serv_list.head) { target_p = ptr->data; @@ -94,7 +94,7 @@ mo_restart(struct Client *client_p, struct Client *source_p, int parc, const cha me.name, get_client_name(source_p, HIDE_IP)); } - ircsprintf(buf, "Server RESTART by %s", get_client_name(source_p, HIDE_IP)); + rb_sprintf(buf, "Server RESTART by %s", get_client_name(source_p, HIDE_IP)); restart(buf); return 0;