$Log$
+ Revision 605.26 2003/03/22 05:38:23 ajc
+ * During startup, display the version string from the Berkeley DB library.
+ * When deleting a mailbox, don't reveal the namespace prefix to the user.
+
Revision 605.25 2003/03/20 08:37:04 error
* connection_died(): Don't crash before printing message, crash afterward.
(Bugzilla id 111)
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
u_int32_t flags = 0;
lprintf(9, "cdb_*: open_databases() starting\n");
+ lprintf(5, "%s\n", db_version(NULL, NULL, NULL));
#ifdef HAVE_ZLIB
lprintf(5, "zlib compression version %s\n", zlibVersion());
#endif
*/
void cmd_kill(char *argbuf)
{
- char aaa[100];
char deleted_room_name[ROOMNAMELEN];
+ char msg[SIZ];
int kill_ok;
kill_ok = extract_int(argbuf, 0);
return;
}
if (kill_ok) {
- strcpy(deleted_room_name, CC->quickroom.QRname);
- delete_room(&CC->quickroom); /* Do the dirty work */
- usergoto(config.c_baseroom, 0, 0, NULL, NULL); /* Return to the Lobby */
+ if (CC->quickroom.QRflags & QR_MAILBOX) {
+ strcpy(deleted_room_name, &CC->quickroom.QRname[11]);
+ }
+ else {
+ strcpy(deleted_room_name, CC->quickroom.QRname);
+ }
+
+ /* Do the dirty work */
+ delete_room(&CC->quickroom);
+
+ /* Return to the Lobby */
+ usergoto(config.c_baseroom, 0, 0, NULL, NULL);
/* tell the world what we did */
- snprintf(aaa, sizeof aaa, "%s> killed by %s\n",
+ snprintf(msg, sizeof msg, "%s> killed by %s\n",
deleted_room_name, CC->curr_user);
- aide_message(aaa);
+ aide_message(msg);
cprintf("%d '%s' deleted.\n", CIT_OK, deleted_room_name);
} else {
cprintf("%d ok to delete.\n", CIT_OK);