- else if ($table->auth_type == TABLE_AUTH_TY_CERT
- && ( (($user->flags & USER_FLAG_AUTH) == 0) || (($user->flags & USER_FLAG_TY_CERT) == 0) ) ) {
- $not_allowed_msg = sprintf('chatt_sub("%s", [2, "%s"],"%s");',
- $dt, NICKSERV, $mlang_indwr['mustcert'][$G_lang]);
+ else if ($table->auth_type == TABLE_AUTH_TY_CERT && ( ! $user->is_cert() ) ) {
+ $not_allowed_msg = nickserv_msg($dt, $mlang_indwr['mustcert'][$G_lang]);