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);
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
/*
- * 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.
}
-/* 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)
{
/*
- * 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.
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);