#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
-#include <sys/time.h>
+
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include "citadel.h"
#include "server.h"
-#include <time.h>
#include "sysdep_decls.h"
#include "citserver.h"
#include "support.h"
void cmd_mmod(char *argbuf) {
long msgnum;
int newlevel;
- struct SuppMsgInfo smi;
+ struct MetaData smi;
int is_message_in_room;
/* user must be at least a Room Aide to moderate */
return;
}
- GetSuppMsgInfo(&smi, msgnum);
- smi.smi_mod = newlevel;
- PutSuppMsgInfo(&smi);
+ GetMetaData(&smi, msgnum);
+ smi.meta_mod = newlevel;
+ PutMetaData(&smi);
- cprintf("%d Message %ld is moderated to %d\n", OK, msgnum, newlevel);
+ cprintf("%d Message %ld is moderated to %d\n", CIT_OK, msgnum, newlevel);
}