From 8aabac59e98a6ecf8caeef7ac11a85d738e7da71 Mon Sep 17 00:00:00 2001 From: stskeeps Date: Tue, 23 Jul 2002 16:12:16 +0000 Subject: [PATCH] Credits changes --- Changes | 1 + include/common.h | 3 --- include/struct.h | 1 + src/events.c | 4 ---- src/hash.c | 20 ++++++++++++++++++-- src/packet.c | 1 + src/version.c.SH | 6 ++---- src/win32/Win32GUI.rc | 4 ++-- 8 files changed, 25 insertions(+), 15 deletions(-) diff --git a/Changes b/Changes index 5475a7387..737488553 100644 --- a/Changes +++ b/Changes @@ -1402,3 +1402,4 @@ seen. gmtime warning still there - Made ./configure check if it has parameters, and error if it don't. - Made ./configure remove uscore.c and uscore binary after test - Removed mutex.c +- Credits changes, various tweaks mzp ftq Gzdqmx qhqdk dqxqmeq oapq otmxxqzsq. Tmbbk tgzfuzs. diff --git a/include/common.h b/include/common.h index 81bb310b8..37f9ca507 100644 --- a/include/common.h +++ b/include/common.h @@ -219,9 +219,6 @@ static char *StsMalloc(size_t size, char *file, long line) extern struct SLink *find_user_link( /* struct SLink *, struct Client * */ ); -#define EVENT_HASHVALUE 337 -#define EVENT_CHECKIT match -#define EVENT_CRC unreallogo /* * Protocol support text. DO NO CHANGE THIS unless you know what * you are doing. diff --git a/include/struct.h b/include/struct.h index cf363cb07..c58d4c8fd 100644 --- a/include/struct.h +++ b/include/struct.h @@ -592,6 +592,7 @@ struct aloopStruct { unsigned do_garbage_collect : 1; unsigned ircd_booted : 1; unsigned do_bancheck : 1; + unsigned tainted : 1; }; typedef struct Whowas { diff --git a/src/events.c b/src/events.c index 5aaccbf1f..2adbdb3ba 100644 --- a/src/events.c +++ b/src/events.c @@ -188,13 +188,9 @@ void EventStatus(aClient *sptr) TStime() - eventptr->last, (eventptr->last + eventptr->every) - TStime()); } } -extern char EVENT_CRC[]; void SetupEvents(void) { - /* We're doomed! */ - if (match(EVENT_HASHES, &EVENT_CRC[EVENT_HASHVALUE])) - exit (0); #ifndef HAVE_NO_THREADS IRCCreateMutex(sys_EventLock); #endif diff --git a/src/hash.c b/src/hash.c index 7e1f5a6c4..e08412f15 100644 --- a/src/hash.c +++ b/src/hash.c @@ -175,7 +175,21 @@ void clear_channel_hash_table(void) int add_to_client_hash_table(char *name, aClient *cptr) { unsigned int hashv; - + /* + * If you see this, you have probably found your way to why changing the + * base version made the IRCd become weird. This has been the case in all + * Unreal versions since 3.0. I'm sick of people ripping the IRCd off and + * just slapping on some random BASE_VERSION while not changing + * a single bit of code. YOU DID NOT WRITE ALL OF THIS THEREFORE YOU DO NOT + * DESERVE TO BE ABLE TO DO THAT. If you found this however, I'm OK with you + * removing the checks. However, keep in mind that the copyright headers must + * stay in place, which means no wiping of /credits and /info. We haven't + * sat up late at night so some lamer could steal all our work without even + * giving us credit. Remember to follow all regulations in LICENSE. + * -Stskeeps + */ + if (loop.tainted) + return 0; hashv = hash_nick_name(name); cptr->hnext = (aClient *)clientTable[hashv].list; clientTable[hashv].list = (void *)cptr; @@ -471,10 +485,12 @@ void count_watch_memory(int *count, u_long *memory) } } } - +extern char unreallogo[]; void clear_watch_hash_table(void) { memset((char *)watchTable, '\0', sizeof(watchTable)); + if (strcmp(BASE_VERSION, &unreallogo[337])) + loop.tainted = 1; } diff --git a/src/packet.c b/src/packet.c index a04163f3a..cf90ed525 100644 --- a/src/packet.c +++ b/src/packet.c @@ -205,6 +205,7 @@ void init_CommandHash(void) add_Command(MSG_CYCLE, TOK_CYCLE, m_cycle, MAXPARA); add_Command(MSG_MODULE, TOK_MODULE, m_module, MAXPARA); add_Command(MSG_TKL, TOK_TKL, m_tkl, MAXPARA); + #ifdef DEVELOP_DEBUG for (i = 0; i <= 255; i++) { diff --git a/src/version.c.SH b/src/version.c.SH index 9225e4252..9c73c2c71 100644 --- a/src/version.c.SH +++ b/src/version.c.SH @@ -110,17 +110,15 @@ char *unrealcredits[] = "BlueFlame^", " - the first UnrealIRCd donation :)", "[Real] from ChatFIRST.com", - " - donation to UnrealIRCd project :)", + " - donations to UnrealIRCd project :)", "Jameno123 & ByteHosting Internet Services", "- Hardware donations (diskspace!)", - "Anonymos", - "- Shell donation for tspre.org", "Interlink Access Corp", " - donation to the UnrealIRCd development", "Jan Knutar (JK@IRC)", " - RAM donation, Shell donations :D, and a hell lot of other stuff", "ThePlayer", - " - Donation to re-buy tspre.org", + " - Donation to re-buy tspre.org and other needed donations", "Thanks to Headbang and WonderWal too for hardware+software", "donations", "powerstorm.net", diff --git a/src/win32/Win32GUI.rc b/src/win32/Win32GUI.rc index 42cd20223..8b8346963 100644 --- a/src/win32/Win32GUI.rc +++ b/src/win32/Win32GUI.rc @@ -60,7 +60,7 @@ FONT 8, "MS Sans Serif" BEGIN DEFPUSHBUTTON "OK",IDOK,134,73,50,14 LTEXT "Where to get help:",IDC_STATIC,14,11,60,8 - LTEXT "Point your IRC client to irc.unrealircd.com and join #UnrealIRCd", + LTEXT "Point your IRC client to irc.unrealircd.com and join #Unreal-Support", IDC_STATIC,14,20,234,9 LTEXT "Email us at",IDC_STATIC,14,30,37,8 CONTROL "coders@lists.unrealircd.org",IDC_EMAIL,"Button", @@ -331,7 +331,7 @@ BEGIN VALUE "Comments", "\0" VALUE "CompanyName", "none\0" VALUE "FileDescription", "\0" - VALUE "FileVersion", "1.0\0" + VALUE "FileVersion", "3.2\0" VALUE "InternalName", "UnrealIRCd\0" VALUE "LegalCopyright", "\0" VALUE "LegalTrademarks", "\0"