Commit 16a33e12 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

set_motd_of_lyskom now sets kom_errno to KOM_MARK_LIMIT where appropriate.

parent 613febc1
......@@ -63,8 +63,9 @@ set_motd_of_lyskom (Text_no motd)
GET_T_STAT(new_motd, motd, FAILURE);
if ( new_motd->no_of_marks >= MAX_MARKS_TEXT )
{
log(
"LIMIT: set_motd_of_lyskom(): New motd very marked.\n");
log("LIMIT: set_motd_of_lyskom(%d): New motd has %d marks.\n",
motd, new_motd->no_of_marks);
kom_errno = KOM_MARK_LIMIT;
return FAILURE;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment