File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -171,16 +171,20 @@ func (c *Client) Ready() {
171171 }
172172}
173173
174- func (c * Client ) checkDnsBl () {
174+ func (c * Client ) checkDnsBl () ( tookAction string ) {
175175 dnsResult := dnsbl .Lookup (c .Gateway .Config .DnsblServers , c .RemoteAddr )
176176 if dnsResult .Listed && c .Gateway .Config .DnsblAction == "deny" {
177177 c .SendIrcError ("Blocked by DNSBL" )
178178 c .SendClientSignal ("state" , "closed" , "dnsbl_listed" )
179179 c .StartShutdown ("dnsbl" )
180+ tookAction = "deny"
180181 } else if dnsResult .Listed && c .Gateway .Config .DnsblAction == "verify" {
181182 c .RequiresVerification = true
182183 c .SendClientSignal ("data" , "CAPTCHA NEEDED" )
184+ tookAction = "verify"
183185 }
186+
187+ return
184188}
185189
186190func (c * Client ) IsShuttingDown () bool {
You can’t perform that action at this time.
0 commit comments