forked from PsychoticNinja/irssi
add backwards compatible code for running tap tests (cherry picked from commit 17aafe974b6251fecff4198d3dd3ab9cf1620b78)
add backwards compatible code for running tap tests (cherry picked from commit 17aafe974b6251fecff4198d3dd3ab9cf1620b78)