* fallback to /knrooms after login if the user doesn't have a setting.
authorWilfried Göesgens <willi@citadel.org>
Tue, 29 Jul 2008 18:21:28 +0000 (18:21 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 29 Jul 2008 18:21:28 +0000 (18:21 +0000)
webcit/auth.c

index 8912b92a943e18905e979b5442fa1cc1f24e2c35..d347e78414a657de154d4ef261794dc55f29d2aa 100644 (file)
@@ -539,6 +539,8 @@ void do_welcome(void)
        if (ChrPtr(Buf)[0] == '/') {
                StrBufCutLeft(Buf, 1);
        }
+       if (StrLength(Buf) == 0)
+               StrBufAppendBufPlain(Buf, "/knrooms", 1, 0);
        http_redirect(ChrPtr(Buf));
 }