- }
-
-
-/*
- * Masquerade roomname
- */
-void cmd_rchg(char *argbuf)
-{
- char newroomname[ROOMNAMELEN];
-
- extract_token(newroomname, argbuf, 0, '|', sizeof newroomname);
- newroomname[ROOMNAMELEN-1] = 0;
- if (!IsEmptyStr(newroomname)) {
- safestrncpy(CC->fake_roomname, newroomname,
- sizeof(CC->fake_roomname) );
- }
- else {
- safestrncpy(CC->fake_roomname, "", sizeof CC->fake_roomname);
- }
- cprintf("%d OK\n", CIT_OK);
-}
-
-/*
- * Masquerade hostname
- */
-void cmd_hchg(char *argbuf)
-{
- char newhostname[64];
-
- extract_token(newhostname, argbuf, 0, '|', sizeof newhostname);
- if (!IsEmptyStr(newhostname)) {
- safestrncpy(CC->fake_hostname, newhostname,
- sizeof(CC->fake_hostname) );
- }
- else {
- safestrncpy(CC->fake_hostname, "", sizeof CC->fake_hostname);
- }
- cprintf("%d OK\n", CIT_OK);