+12
-10
@@ -8725,16 +8725,18 @@ BOOL is_author(LOGBOOK * lbs, char attrib[MAX_N_ATTR][NAME_LENGTH], char *owner)
|
||||
|
||||
if (i == lbs->n_attr) {
|
||||
/* if not found, search attribute which contains full_name of author */
|
||||
get_full_name(lbs, getparam("unm"), full_name);
|
||||
for (i = 0; i < lbs->n_attr; i++) {
|
||||
sprintf(str, "Preset %s", attr_list[i]);
|
||||
if (getcfg(lbs->name, str, preset, sizeof(preset))) {
|
||||
if (strstr(preset, "$long_name")) {
|
||||
if (strstr(attrib[i], full_name) == NULL) {
|
||||
strcpy(owner, attrib[i]);
|
||||
return FALSE;
|
||||
} else
|
||||
break;
|
||||
if (isparam("unm")) {
|
||||
get_full_name(lbs, getparam("unm"), full_name);
|
||||
for (i = 0; i < lbs->n_attr; i++) {
|
||||
sprintf(str, "Preset %s", attr_list[i]);
|
||||
if (getcfg(lbs->name, str, preset, sizeof(preset))) {
|
||||
if (strstr(preset, "$long_name")) {
|
||||
if (strstr(attrib[i], full_name) == NULL) {
|
||||
strcpy(owner, attrib[i]);
|
||||
return FALSE;
|
||||
} else
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user