14 #include "sysdep_decls.h"
18 #include "serv_chat.h"
19 #include "citserver.h"
23 * Retrieve the applicable expire policy for a specific room
25 void GetExpirePolicy(struct ExpirePolicy *epbuf, struct quickroom *qrbuf) {
28 /* If the room has its own policy, return it */
29 if (qrbuf->QRep.expire_mode != 0) {
30 memcpy(epbuf, &qrbuf->QRep, sizeof(struct ExpirePolicy));
34 /* Otherwise, if the floor has its own policy, return it */
35 getfloor(&flbuf, qrbuf->QRfloor);
36 if (flbuf.f_ep.expire_mode != 0) {
37 memcpy(epbuf, &flbuf.f_ep, sizeof(struct ExpirePolicy));
41 /* Otherwise, fall back on the system default */
42 memcpy(epbuf, &config.c_ep, sizeof(struct ExpirePolicy));
49 void cmd_gpex(char *argbuf) {
50 cprintf("%d Command not yet implemented.\n", ERROR);
57 void cmd_spex(char *argbuf) {
58 cprintf("%d Command not yet implemented.\n", ERROR);