X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;ds=sidebyside;f=textclient%2Fcitadel_ipc.c;h=5b34772fcfc3a7be9a843e79a4aeb41060034815;hb=7b3427cfc9e6a143c3e6187b0f902335ea3cdcc0;hp=e67b29c5813cbdae3502fc3bdb7d1d70081a3f34;hpb=fbd1680aa934d7ebe1044764fd316e389dee46b5;p=citadel.git 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) {