Skip to content

Instantly share code, notes, and snippets.

@macks
Last active December 21, 2015 04:28
Show Gist options
  • Save macks/6249109 to your computer and use it in GitHub Desktop.
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.
--- 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