* cmd_gpex(): fix policy querieing for rooms
authorWilfried Göesgens <willi@citadel.org>
Sun, 15 Aug 2010 13:02:38 +0000 (13:02 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 15 Aug 2010 13:02:38 +0000 (13:02 +0000)
citadel/modules/expire/expire_policy.c

index 9b2faf1a52999e85f80c5b4a865161723b2832e3..f1d144943f80f8ff1fe981f4dcd33acbe331a1c9 100644 (file)
@@ -85,7 +85,8 @@ void cmd_gpex(char *argbuf) {
        char which[128];
 
        extract_token(which, argbuf, 0, '|', sizeof which);
-       if (!strcasecmp(which, strof(room))) {
+       if (!strcasecmp(which, strof(roompolicy))||
+           !strcasecmp(which, "room")) { /* Deprecated version */
                memcpy(&exp, &CC->room.QRep, sizeof(struct ExpirePolicy));
        }
        else if (!strcasecmp(which, strof(floorpolicy))||