*
* This program is open source software. You can redistribute it and/or
* modify it under the terms of the GNU General Public License, version 3.
- *
- *
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
- *
- *
- *
*/
#include "webcit.h"
*/
void delete_room(void)
{
- StrBuf *Line;
+ StrBuf *Line = NewStrBuf();
+ const StrBuf *GoBstr;
- serv_puts("KILL 1");
- StrBuf_ServGetln(Line);
- if (GetServerStatusMsg(Line, NULL, 1, 2) != 2) {
- display_main_menu();
- } else {
- StrBuf *Buf;
-
- FlushRoomlist ();
- Buf = NewStrBufPlain(HKEY("_BASEROOM_"));
- smart_goto(Buf);
- FreeStrBuf(&Buf);
+ GoBstr = sbstr("go");
+
+ if (GoBstr != NULL)
+ {
+ if (gotoroom(GoBstr) == 200)
+ {
+ serv_puts("KILL 1");
+ StrBuf_ServGetln(Line);
+ if (GetServerStatusMsg(Line, NULL, 1, 2) == 2) {
+ StrBuf *Buf;
+
+ FlushRoomlist ();
+ Buf = NewStrBufPlain(HKEY("_BASEROOM_"));
+ smart_goto(Buf);
+ FreeStrBuf(&Buf);
+ FreeStrBuf(&Line);
+ return;
+ }
+ }
}
+ display_main_menu();
FreeStrBuf(&Line);
}
StrBuf *TmpBuf;
int Done;
+ if (havebstr("force_room")) {
+ gotoroom(sbstr("force_room"));
+ }
/*/ TODO: do line dynamic! */
if (havebstr("line_pop3host")) {
strcpy(line, bstr("prefix"));