- ip = IPtostr(((patricia_node_t *)sp->node)->prefix->sin);
- irc_send("%s GL * +*@%s 1800 %jd :Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d",
- mynumeric->content,ip,(intmax_t)getnettime(), chp->glineid);
- Error("proxyscan",ERR_DEBUG,"Found open proxy on host %s",ip);
+ ip = &(((patricia_node_t *)sp->node)->prefix->sin);
+ snprintf(reason, sizeof(reason), "Open Proxy, see http://www.quakenet.org/openproxies.html - ID: %d", chp->glineid);
+ glinebyip("*", ip, 128, 1800, reason, GLINE_IGNORE_TRUST, "proxyscan");
+ Error("proxyscan",ERR_DEBUG,"Found open proxy on host %s",IPtostr(*ip));