From: Art Cancro Date: Thu, 14 Mar 2019 19:10:34 +0000 (-0400) Subject: Removed the <.W>holist oomname and <.W>holist ostname commands from the text... X-Git-Tag: v939~305 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=7b3427cfc9e6a143c3e6187b0f902335ea3cdcc0 Removed the <.W>holist oomname and <.W>holist ostname commands from the text client --- diff --git a/textclient/citadel.c b/textclient/citadel.c index edb79e081..b63f07d4b 100644 --- a/textclient/citadel.c +++ b/textclient/citadel.c @@ -1847,18 +1847,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); diff --git a/textclient/citadel.rc b/textclient/citadel.rc index fb2dc0755..09792b054 100644 --- a/textclient/citadel.rc +++ b/textclient/citadel.rc @@ -315,8 +315,6 @@ cmd=66,0,&.,&Enter,&Bio cmd=67,0,&.,&Read,&Bio cmd=79,0,&.,&Wholist,&Long -cmd=75,0,&.,&Wholist,&Roomname -cmd=76,0,&.,&Wholist,&Hostname cmd=91,0,&.,&Wholist,&Active cmd=93,0,&.,&Wholist,&Stealth mode diff --git a/textclient/citadel_ipc.c b/textclient/citadel_ipc.c index e67b29c58..5b34772fc 100644 --- a/textclient/citadel_ipc.c +++ b/textclient/citadel_ipc.c @@ -1,5 +1,5 @@ /* - * 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. @@ -1957,50 +1957,6 @@ int CtdlIPCEnterSystemMessage(CtdlIPC * ipc, const char *filename, const char *t } -/* HCHG */ -int CtdlIPCChangeHostname(CtdlIPC * ipc, const char *hostname, char *cret) -{ - int ret; - char *aaa; - - if (!cret) - return -2; - if (!hostname) - return -2; - - aaa = (char *) malloc(strlen(hostname) + 6); - if (!aaa) - return -1; - - sprintf(aaa, "HCHG %s", hostname); - ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0, NULL, NULL, cret); - free(aaa); - return ret; -} - - -/* RCHG */ -int CtdlIPCChangeRoomname(CtdlIPC * ipc, const char *roomname, char *cret) -{ - int ret; - char *aaa; - - if (!cret) - return -2; - if (!roomname) - return -2; - - aaa = (char *) malloc(strlen(roomname) + 6); - if (!aaa) - return -1; - - sprintf(aaa, "RCHG %s", roomname); - ret = CtdlIPCGenericCommand(ipc, aaa, NULL, 0, NULL, NULL, cret); - free(aaa); - return ret; -} - - /* UCHG */ int CtdlIPCChangeUsername(CtdlIPC * ipc, const char *username, char *cret) { diff --git a/textclient/textclient.h b/textclient/textclient.h index 0dfb14c76..3c84830ff 100644 --- a/textclient/textclient.h +++ b/textclient/textclient.h @@ -1,5 +1,5 @@ /* - * 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. @@ -479,8 +479,6 @@ int CtdlIPCTerminateSession(CtdlIPC *ipc, int sid, char *cret); int CtdlIPCTerminateServerNow(CtdlIPC *ipc, char *cret); int CtdlIPCTerminateServerScheduled(CtdlIPC *ipc, int mode, char *cret); int CtdlIPCEnterSystemMessage(CtdlIPC *ipc, const char *filename, const char *text, char *cret); -int CtdlIPCChangeHostname(CtdlIPC *ipc, const char *hostname, char *cret); -int CtdlIPCChangeRoomname(CtdlIPC *ipc, const char *roomname, char *cret); int CtdlIPCChangeUsername(CtdlIPC *ipc, const char *username, char *cret); time_t CtdlIPCServerTime(CtdlIPC *ipc, char *crert); int CtdlIPCAideGetUserParameters(CtdlIPC *ipc, const char *who, struct ctdluser **uret, char *cret);