-void cmd_rchg(char *argbuf)
-{
- char newroomname[256];
-
- extract(newroomname, argbuf, 0);
- newroomname[ROOMNAMELEN-1] = 0;
- if (strlen(newroomname) > 0) {
- safestrncpy(CC->fake_roomname, newroomname,
- sizeof(CC->fake_roomname) );
- }
- else {
- strcpy(CC->fake_roomname, "");
- }
- cprintf("%d OK\n", OK);
-}
-
-void cmd_hchg(char *argbuf)
-{
- char newhostname[256];
-
- extract(newhostname, argbuf, 0);
- if (strlen(newhostname) > 0) {
- safestrncpy(CC->fake_hostname, newhostname,
- sizeof(CC->fake_hostname) );
- }
- else {
- strcpy(CC->fake_hostname, "");
- }
- cprintf("%d OK\n", OK);
-}
-
-void cmd_uchg(char *argbuf)
-{
-
- char newusername[256];
-
- extract(newusername, argbuf, 0);
-
- if (CC->usersupp.axlevel < 6) {
- cprintf("%d You must be an Aide to masquerade your name.\n",
- ERROR+HIGHER_ACCESS_REQUIRED);
- return;
- }
-
- if (strlen(newusername) > 0) {
- CC->cs_flags &= ~CS_STEALTH;
- memset(CC->fake_username, 0, 32);
- if (strncasecmp(newusername, CC->curr_user,
- strlen(CC->curr_user)))
- safestrncpy(CC->fake_username, newusername,
- sizeof(CC->fake_username));
- }
- else {
- CC->fake_username[0] = '\0';
- CC->cs_flags |= CS_STEALTH;
- }
- cprintf("%d\n",OK);
-}
-
-