if (target->email && (rup==target || cs_privcheck(QPRIV_VIEWEMAIL, sender))) {
chanservstdmessage(sender, QM_WHOIS_EMAIL, target->email->content);
- chanservstdmessage(sender, QM_WHOIS_EMAILSET, target->lastemailchange);
- chanservstdmessage(sender, QM_WHOIS_PASSSET, target->lastpasschange);
+
+ if (target->lastemailchange)
+ chanservstdmessage(sender, QM_WHOIS_EMAILSET, target->lastemailchange);
+ if (target->lastpasschange)
+ chanservstdmessage(sender, QM_WHOIS_PASSSET, target->lastpasschange);
}
if (target->info && *target->info->content) {