Ok this works, but didn't test it enough to see if there are any bugs.
In newreply.php, replace
PHP Code:
if ($bbuserinfo[signature]!="") {
$signaturechecked="CHECKED";
}
with
PHP Code:
if ($bbuserinfo[signature]!="" and !$DB_site->query_first("SELECT postid FROM post WHERE userid='$bbuserinfo[userid]' AND threadid='$threadid' AND showsignature='1'")) {
$signaturechecked="CHECKED";
}