X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=textclient%2Fmessages.c;h=cb5e4dd1b2afd17615f87a2bd096f6e35356ee96;hp=67d656dbaef2a37e2284342abbe7a6855b911401;hb=a6722156441811d3cddce7179eb56c483eebd37f;hpb=cb5275786332fa50897200781d3100449b5f71dd diff --git a/textclient/messages.c b/textclient/messages.c index 67d656dba..cb5e4dd1b 100644 --- a/textclient/messages.c +++ b/textclient/messages.c @@ -1050,7 +1050,21 @@ int entmsg(CtdlIPC * ipc, int is_reply, /* nonzero if this was a eply command int r; /* IPC response code */ int subject_required = 0; - if (!entmsg_ok) { + if (entmsg_ok == ENTMSG_OK_YES) { + /* no problem, go right ahead */ + } + else if (entmsg_ok == ENTMSG_OK_BLOG) { + if (!is_reply) { + scr_printf("WARNING: this is a BLOG room.\n"); + scr_printf("The 'nter Message' command will create a BLOG POST.\n"); + scr_printf("If you want to leave a comment or reply to a comment, use the 'eply' command.\n"); + scr_printf("Do you really want to create a new blog post? "); + if (!yesno()) { + return(1); + } + } + } + else { scr_printf("You may not enter messages in this type of room.\n"); return (1); }