X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fpreferences.c;h=0fdb07d41ee5eade9503ca503861136df23c1942;hb=013c587bf5ad95282ad766b363d8734e99522052;hp=ac4fb3c483b4099e547591fe2f00c62059aa6954;hpb=6c82897960051cebe9087909c3655029d133ab66;p=citadel.git diff --git a/webcit/preferences.c b/webcit/preferences.c index ac4fb3c48..0fdb07d41 100644 --- a/webcit/preferences.c +++ b/webcit/preferences.c @@ -247,23 +247,24 @@ void load_preferences(void) FreeStrBuf(&ReadBuf); } -/** - * \brief Goto the user's configuration room, creating it if necessary. - * \return 0 on success or nonzero upon failure. +/* + * Goto the user's configuration room, creating it if necessary. + * returns 0 on success or nonzero upon failure. */ int goto_config_room(StrBuf *Buf) { serv_printf("GOTO %s", USERCONFIGROOM); StrBuf_ServGetln(Buf); - if (GetServerStatus(Buf, NULL) != 2) { /* try to create the config room if not there */ + if (GetServerStatus(Buf, NULL) != 2) { /* try to create the config room if not there */ serv_printf("CRE8 1|%s|4|0", USERCONFIGROOM); StrBuf_ServGetln(Buf); GetServerStatus(Buf, NULL); serv_printf("GOTO %s", USERCONFIGROOM); StrBuf_ServGetln(Buf); - if (GetServerStatus(Buf, NULL) != 2) + if (GetServerStatus(Buf, NULL) != 2) { return(1); + } } return(0); }