I discovered and fixed a serious issue that was resulting in huge spams (double message + 10 or more Preflinks) while using !massinv and !announce ...
The issue came from this part of code (line 148 to 153) :
$dis = $dis.$blobs[(int)$massmsg][(int)$massinv];
}
else
$dis = "";
$message = str_ireplace("##disable##", $dis, $msg);
With more than one recipient, the $dis variable would be filled of several times of itself. The fix i made was to use a different var :
$addlink = $dis.$blobs[(int)$massmsg][(int)$massinv];
}
else
$addlink = "";
$message = str_ireplace("##disable##", $addlink, $msg);