From 3de82b24ab6b64e144577a86938ba04d53042d5c Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Mon, 8 Dec 2014 23:23:52 +0100 Subject: [PATCH] Catch errors while saving roomnet configs --- webcit/roomops.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webcit/roomops.c b/webcit/roomops.c index 099fabd9f..bee589e4e 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -1210,6 +1210,14 @@ void netedit(void) { } serv_puts("000"); + serv_puts("NOOP"); + StrBuf_ServGetln(Line); + if (GetServerStatus(Line, NULL) != 2) { /* WHOOOPS? ERROR? */ + AppendImportantMessage(SRV_STATUS_MSG(Line)); + StrBuf_ServGetln(Line); /* resync... */ + } + + FlushIgnetCfgs(&WC->CurRoom); FreeStrBuf(&Line); -- 2.30.2