]> jfr.im git - irc/quakenet/newserv.git/blobdiff - glines/glines.c
Merge branch 'master' into chanserv-live
[irc/quakenet/newserv.git] / glines / glines.c
index 63d51b209973d1428d579c6d879c1e29a0e3bc95..e19559d859b8f43ecd14f25ff47c10006f8bc822 100644 (file)
@@ -15,7 +15,7 @@ void _init() {
   /* If we're connected to IRC, force a disconnect. */
   if (connected) {
     irc_send("%s SQ %s 0 :Resync [adding gline support]", mynumeric->content, myserver->content);
-    irc_disconnected();
+    irc_disconnected(0);
   }
 
   registerserverhandler("GL", handleglinemsg, 6);
@@ -45,7 +45,7 @@ int gline_match_nick(gline *gl, nick *np) {
     return 0;
 
   if (gl->flags & GLINE_IPMASK) {
-    if (!ipmask_check(&gl->ip, &np->p_ipaddr, gl->bits))
+    if (!ipmask_check(&gl->ip, &np->ipaddress, gl->bits))
       return 0;
   } else {
     if (gl->host && match(gl->host->content, np->host->name->content) != 0)