Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added bot/storybot
Binary file not shown.
8 changes: 8 additions & 0 deletions config.status
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh
#
# Re-run this script to generate the same configuration
# as you had on the last successful run of configure
#

./configure --enable-warn3

2 changes: 1 addition & 1 deletion config/init_data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2000 5 1 1 4 2 3 1 AB
1900 5 1 1 4 2 3 1 AB
A front_gate BCDE 0 0
B newbie_heaven A 0 0
C meadow * 1 0
Expand Down
131 changes: 131 additions & 0 deletions copy
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
#!/bin/sh
CODEPATH=~thelittleprince/www/ncohafmuta

# Make options
# dist
# distzip
# distZ
#
# distsmall
# distsmallzip
# distsmallZ
#
# distpic
# distpiczip
# distpicZ
# distutils
# distutilszip
# distutilsZ
# disttzinfo
# disttzinfozip
# disttzinfoZ
# distbot
# distbotzip
# distbotZ

# value for $1 is prefix version, i.e. ncoh123
# value for $2 is version or none
# value for $3 is path
# possible OUTPUT values for THISTYPE from $3
# dist-full
# dist-minimal
# bot
# utils
# pictures
# tzinfo

if [ "$1" = "" ]
then
echo "Usage: ./copy <version> <path from download> <type>"
echo "Example: ./copy ncoh123 none stable/1.2.3 distZ"
echo "Example: ./copy ncoh130 devel/1.3.0 distsmall"
exit 0
fi

THISVER="$1";
THISPATH="$2";

if [ "$3" = "dist" ]
then
THISTYPE="dist-full";
THISEXT="tar.gz";
elif [ "$3" = "distzip" ]
then
THISTYPE="dist-full";
THISEXT="zip";
elif [ "$3" = "distZ" ]
then
THISTYPE="dist-full";
THISEXT="tar.Z";
elif [ "$3" = "distsmall" ]
then
THISTYPE="dist-minimal";
THISEXT="tar.gz";
elif [ "$3" = "distsmallzip" ]
then
THISTYPE="dist-minimal";
THISEXT="zip";
elif [ "$3" = "distsmallZ" ]
then
THISTYPE="dist-minimal";
THISEXT="tar.Z";
elif [ "$3" = "distbot" ]
then
THISTYPE="bot";
THISEXT="tar.gz";
elif [ "$3" = "distbotzip" ]
then
THISTYPE="bot";
THISEXT="zip";
elif [ "$3" = "distbotZ" ]
then
THISTYPE="bot";
THISEXT="tar.Z";
elif [ "$3" = "distpic" ]
then
THISTYPE="pictures";
THISEXT="tar.gz";
elif [ "$3" = "distpiczip" ]
then
THISTYPE="pictures";
THISEXT="zip";
elif [ "$3" = "distpicZ" ]
then
THISTYPE="pictures";
THISEXT="tar.Z";
elif [ "$3" = "distutils" ]
then
THISTYPE="utils";
THISEXT="tar.gz";
elif [ "$3" = "distutilszip" ]
then
THISTYPE="utils";
THISEXT="zip";
elif [ "$3" = "distutilsZ" ]
then
THISTYPE="utils";
THISEXT="tar.Z";
elif [ "$3" = "disttzinfo" ]
then
THISTYPE="tzinfo";
THISEXT="tar.gz";
elif [ "$3" = "disttzinfozip" ]
then
THISTYPE="tzinfo";
THISEXT="zip";
elif [ "$3" = "disttzinfoZ" ]
then
THISTYPE="tzinfo";
THISEXT="tar.Z";
else
echo $3 is not a recognized type!
exit 0
fi

echo -n Copying..

cp /tmp/ncohafmuta/ncohafmuta-$THISTYPE.$THISEXT $CODEPATH/download/$THISPATH/$THISVER-$THISTYPE.$THISEXT
chmod 644 $CODEPATH/download/$THISPATH/$THISVER-$THISTYPE.$THISEXT

cp docs/CHANGES $CODEPATH
echo done.
54 changes: 54 additions & 0 deletions copyall
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#!/bin/sh

VERSION="ncoh141"
NUMVER="1.4.1"
DEVEL="stable"

echo --- MAKING ---
make dist
make distZ
make distzip

make distsmall
make distsmallZ
make distsmallzip

make distpic
make distpicZ
make distpiczip

make distbot
make distbotZ
make distbotzip

make distutils
make distutilsZ
make distutilszip

make disttzinfo
make disttzinfoZ
make disttzinfozip

echo --- COPYING ---

./copy $VERSION $DEVEL/$NUMVER dist
./copy $VERSION $DEVEL/$NUMVER distsmall
./copy $VERSION $DEVEL/$NUMVER distbot
./copy $VERSION $DEVEL/$NUMVER distpic
./copy $VERSION $DEVEL/$NUMVER distutils
./copy $VERSION $DEVEL/$NUMVER disttzinfo

./copy $VERSION $DEVEL/$NUMVER/other-formats distZ
./copy $VERSION $DEVEL/$NUMVER/other-formats distsmallZ
./copy $VERSION $DEVEL/$NUMVER/other-formats distbotZ
./copy $VERSION $DEVEL/$NUMVER/other-formats distpicZ
./copy $VERSION $DEVEL/$NUMVER/other-formats distutilsZ
./copy $VERSION $DEVEL/$NUMVER/other-formats disttzinfoZ

./copy $VERSION $DEVEL/$NUMVER/other-formats distzip
./copy $VERSION $DEVEL/$NUMVER/other-formats distsmallzip
./copy $VERSION $DEVEL/$NUMVER/other-formats distbotzip
./copy $VERSION $DEVEL/$NUMVER/other-formats distpiczip
./copy $VERSION $DEVEL/$NUMVER/other-formats distutilszip
./copy $VERSION $DEVEL/$NUMVER/other-formats disttzinfozip

9 changes: 9 additions & 0 deletions copydocs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh
CODEPATH=~thelittleprince/www/ncohafmuta

echo -n Copying..
rm -fr $CODEPATH/docs/*
cp docs/* $CODEPATH/docs/
chmod 644 $CODEPATH/docs/*
echo done.

24 changes: 24 additions & 0 deletions copystep
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

DEVEL="development"
VERSION="ncoh153"
NUMVER="1.5.3"

mkdir ~/www/ncohafmuta/download/$DEVEL/$NUMVER
make dist
#make distsmall
#make distbot
#make distpic
#make distutils
#make disttzinfo
./copy $VERSION $DEVEL/$NUMVER dist
#./copy $VERSION $DEVEL/$NUMVER distsmall
#./copy $VERSION $DEVEL/$NUMVER distbot
#./copy $VERSION $DEVEL/$NUMVER distpic
#./copy $VERSION $DEVEL/$NUMVER distutils
#./copy $VERSION $DEVEL/$NUMVER disttzinfo

./copydocs
mv ~/www/ncohafmuta/download/LATEST_DEVEL* ~/www/ncohafmuta/download/LATEST_DEVEL_IS_$NUMVER
mv ~/www/ncohafmuta/download/$DEVEL/LATEST_DEVEL* ~/www/ncohafmuta/download/$DEVEL/LATEST_DEVEL_IS_$NUMVER

10 changes: 10 additions & 0 deletions docs/CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ cut off the recipients (because of the input socket limit imposed)
* need to fix web port so you don't need to put a / after the port number
in the URL to get it to work??

09/17/05
* Changed cast of last argument of execlp() call in resolver_client.c.
Newer GCCs throw a sentinel warning if not cast correctly.

09/01/04
* Moved more DNS resolution functionality into resolve_add function,
some which was in the log_misc_connect function
* Slightly modified connection-based log entry content.
* Slightly modified SMTP-based log entry content.

04/11/04 1.5.3
* Added a temp. user struct called bytes_read.
* Added a function and prototype called check_flood_limits()
Expand Down
14 changes: 9 additions & 5 deletions docs/TODO
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ Things to do..in no good order!
11. stacked colors
12. Add user afk status to soft-reboot DB
13. Maybe add room conversation buffers to soft-reboot DB

14. Either redesign atmospheric algorithm, or update code to say that the atmos's
number is not a probability/chance number!!

Future
------
Add IPV6 support
Add SSL/TLS connection encryption support

Maybe put .to messages in tell buffer for users that go idle. Alternative
is to auto-afk a user after XX number of minutes idle, then a .to would
fail since the user is idle.
Expand Down Expand Up @@ -114,8 +118,8 @@ allocated on bootup for MAX_USERS. Should allocate as needed (login/logout)
Same for rooms. All rooms are allocated on bootup. Should be as
needed..i.e. create and destroy rooms based on if users are in them, or
are immediately ready to enter them.
(50% done. so far have finished mallocing for area conv buffer, user conv
buffers, and user macros, because these take the most memory)
(start with mallocing for area conv buffer, user conv buffers, and user macros,
because these take the most memory)

Split code into multiple C files (in progress!)

Expand Down Expand Up @@ -166,8 +170,8 @@ in the Subject: field. Or maybe just <name>.<talker_name>@<talker's host>
cygnus.pinwheels@ncohafmuta.com


**Things being considered still**

Things being considered still
-----------------------------
* Using a database
* Using Async I/O threads
* Encrypting all user files
Expand Down
14 changes: 13 additions & 1 deletion hdrfiles/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,8 @@ extern int num_locks;
/* The paths for sendmail or mail may be different on your system. Use the */
/* "locate sendmail" or "which mail" command to find where yours resides */
/* FOR WINDOWS SYSTEMS, OPTION 2 (SMTP) IS THE ONLY OPTION YOU CAN USE */
#define MAILPROG "/usr/sbin/sendmail -t"
/* #define MAILPROG "/usr/sbin/sendmail -t" */
#define MAILPROG "127.0.0.1:25"

/* Program used to send a fortune. Use "which fortune" to see where yours is */
#define FORTPROG "/usr/local/bin/fortune"
Expand Down Expand Up @@ -1508,6 +1509,17 @@ extern term_struct terms[];
#define DATA_IS_MSG 0
#define DATA_IS_FILE 1

/* resolution stuff */
#define RESOLVE_TO_IP 1
#define RESOLVE_TO_NAME 2
#define RESOLVE_TO_OTHER 3

#define RESOLVE_USER 0
#define RESOLVE_WHO 1
#define RESOLVE_WWW 2
#define RESOLVE_SMTP 3
#define RESOLVE_RWHO 4

#define SYS_VAR "%system%"
#define USER_VAR "%user%"
#define HOST_VAR "%host%"
Expand Down
4 changes: 2 additions & 2 deletions hdrfiles/protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void parse_input(int user, char *inpstr);
void do_telnet_commands(int user);
void terminate(int user, char *str);
void review(int user);
void resolve_add(int user_wait, unsigned long addr, int mode);
void resolve_add(int user_wait, unsigned long addr, int mode, int submode);
void reset_userfors(int startup);
void remove_junk(int startup);
void auto_restrict(int user);
Expand Down Expand Up @@ -363,7 +363,7 @@ int instr2(int pos, char *ss, char *sf, int mode);
int how_many_users(char *name);
int get_user_num_exact(char *i_name, int user);
int check_macro(int user, char *inpstr);
int log_misc_connect(int user, unsigned long addr, int type);
int log_misc_connect(int user, int type);
int find_num_in_area(int area);
int get_length(char *filen);
int read_user(char *name);
Expand Down
Loading