Last active
December 21, 2015 04:28
-
-
Save macks/6249109 to your computer and use it in GitHub Desktop.
Bug fix for Tiarra IRC Proxy. Stuck in a name resolver when addresses are inconsistent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/main/Tiarra/Resolver.pm | |
+++ b/main/Tiarra/Resolver.pm | |
@@ -269,6 +269,8 @@ sub _paranoid_stage2 { | |
if ($entry->answer_status eq $entry->ANSWER_OK) { | |
if (grep { $data eq $_ } @{$entry->answer_data}) { | |
$closure->(1, $entry->query_data, $entry); | |
+ } else { | |
+ $closure->(0, undef, $entry); | |
} | |
} else { | |
$closure->(0, undef, $entry); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment