/*
- * $Id$
- *
* Copyright (c) 1987-2010 by the citadel.org team
*
* This program is free software; you can redistribute it and/or modify
#include "support.h"
#include "config.h"
#include "user_ops.h"
-#include "policy.h"
#include "database.h"
#include "msgbase.h"
#include "internet_addressing.h"
long new_msgnum = (-1L);
int ret = 0;
char roomname[ROOMNAMELEN];
- char buf[SIZ];
+ char errbuf[SIZ];
+ char dummy[SIZ];
char savedroom[ROOMNAMELEN];
int msgs, new;
int i;
* text) is received. This call to client_getln() absorbs it.
*/
flush_output();
- client_getln(buf, sizeof buf);
+ client_getln(dummy, sizeof dummy);
/* Convert RFC822 newlines (CRLF) to Unix newlines (LF) */
CtdlLogPrintf(CTDL_DEBUG, "Converting CRLF to LF\n");
/*
* Can we post here?
*/
- ret = CtdlDoIHavePermissionToPostInThisRoom(buf, sizeof buf, NULL, POST_LOGGED_IN);
+ ret = CtdlDoIHavePermissionToPostInThisRoom(errbuf, sizeof errbuf, NULL, POST_LOGGED_IN, 0);
if (ret) {
/* Nope ... print an error message */
- cprintf("%s NO %s\r\n", Params[0].Key, buf);
+ cprintf("%s NO %s\r\n", Params[0].Key, errbuf);
}
else {