Handling is now to the point where user accounts requiring potential inbox processing...
[citadel.git] / textclient / citadel.c
index edb79e081499de63950d8670829fd8322f771f70..1fea75eb38842077722782d3919324e985b600e6 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Main source module for the client program.
  *
- * Copyright (c) 1987-2018 by the citadel.org team
+ * Copyright (c) 1987-2019 by the citadel.org team
  *
  * 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.
@@ -390,11 +390,13 @@ void dotgoto(CtdlIPC * ipc, char *towhere, int display_name, int fromungoto)
        switch (room->RRdefaultview) {
        case VIEW_BBS:
        case VIEW_MAILBOX:
+               entmsg_ok = ENTMSG_OK_YES;
+               break;
        case VIEW_BLOG:
-               entmsg_ok = 1;
+               entmsg_ok = ENTMSG_OK_BLOG;
                break;
        default:
-               entmsg_ok = 0;
+               entmsg_ok = ENTMSG_OK_NO;
                break;
        }
 
@@ -1847,25 +1849,6 @@ int main(int argc, char **argv)
                        case 73:
                                cli_image_upload(ipc, "_roompic_");
                                break;
-                       case 75:
-                               enternew(ipc, "roomname", aaa, 20);
-                               r = CtdlIPCChangeRoomname(ipc, aaa, bbb);
-                               if (r / 100 != 2)
-                                       scr_printf("\n%s\n", bbb);
-                               break;
-                       case 76:
-                               enternew(ipc, "hostname", aaa, 25);
-                               r = CtdlIPCChangeHostname(ipc, aaa, bbb);
-                               if (r / 100 != 2)
-                                       scr_printf("\n%s\n", bbb);
-                               break;
-                       case 77:
-                               enternew(ipc, "username", aaa, 32);
-                               r = CtdlIPCChangeUsername(ipc, aaa, bbb);
-                               if (r / 100 != 2)
-                                       scr_printf("\n%s\n", bbb);
-                               break;
-
                        case 35:
                                set_password(ipc);
                                break;