FEFO for irspy_search() if a hash is passed in place of a hash-reference.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Connection.pm
index 6157f98..6664168 100644 (file)
@@ -148,6 +148,7 @@ sub irspy_search {
     my $this = shift();
     my($qtype, $qstr, $udata, $options, %cb) = @_;
 
+    { use Carp; confess "Odd-sized hash!" if @_ % 2; }
     #warn "calling $this->irspy_search(", join(", ", @_), ")\n";
     $this->add_task(new ZOOM::IRSpy::Task::Search
                    ($qtype, $qstr, $this, $udata, $options, %cb));