diff options
99 files changed, 186 insertions, 162 deletions
@@ -2,7 +2,7 @@ # # Configuration script for Services. # -# Anope (c) 2003 Anope team +# Anope (c) 2003-2005 Anope team # Contact us at dev@anope.org # # This program is free but copyrighted software; see the file COPYING for diff --git a/configure.in b/configure.in index cc9e62507..f5ae42728 100644 --- a/configure.in +++ b/configure.in @@ -1,7 +1,7 @@ dnl autoconf.in for Services. dnl -dnl Anope (c) 2003 Anope team -dnl Contact us at anope@zero.org +dnl Anope (c) 2003-2005 Anope team +dnl Contact us at dev@anope.org dnl This program is free but copyrighted software; see the file COPYING for dnl details. @@ -3,8 +3,9 @@ HOW TO ADD IRCD SUPPORT 1. Files to edit 2. Modifing the header file 3. The code -4. Functions / Events -5. CAPAB/PROTOCTL +4. Modes +5. Functions / Events +6. CAPAB/PROTOCTL ============================================================================================= @@ -326,6 +327,14 @@ usage of each. 77. SGline Enforce : the ircd enforces sglines for us we don't need to, 1 = yes 0 = no +78. Vhost Character : the character used to represent the vhost mode + +79. TS6 : ircd supports TS6, 1 = yes 0 = no + +80. +h mode support, Helper Op mode supported by the ircd, 1 = yes 0 = no + +81. P10 : ircd is a P10 style of IRCD, 1 = yes 0 = no + IRCDCAPAB ircdcap[] = { } This struct is based of the CAPAB defines, you should review the the CAPAB table @@ -366,7 +375,20 @@ CAPAB_TLKEXT | 0x08000000 | TLKEXT | This allows 10 instead of 8 para =================================================================================================== -4. FUNCTIONS AND EVENTS +4. Modes + + The next part that you come to is the user modes. You will want to have your .h file handy +for this part as you being. + +unsigned long umodes[128] = { } + + This starts from 0 to 127 in the ASCII character set. Insert the user modes at the slot +where the mode fits. If you are adding a the user mode of +i find the 105 character slot in +the array, and place the UMODE_i into this slot. + +=================================================================================================== + +5. FUNCTIONS AND EVENTS A brief word about functions and events. All events are captured via the @@ -399,7 +421,7 @@ they may take any number of arguments, and come to a send_cmd() this root functi commands are sent to the ircd. -4. CAPAB/PROTOCTL +6. CAPAB/PROTOCTL Most IRCD send a CAPAB or PROTOCTL line so that they can work out what each is capable of doing. Anope has a function to read these lines and set itself up diff --git a/docs/README b/docs/README index 040abf360..03a966ea6 100644 --- a/docs/README +++ b/docs/README @@ -1,7 +1,7 @@ Anope -- a set of IRC services for IRC networks =============================================== -Anope is 2003-2004 Anope Team <info@anope.org>. +Anope is 2003-2005 Anope Team <info@anope.org>. Based on Epona 2000-2002 PegSoft <epona@pegsoft.net>. Based on Services 1996-1999 Andrew Church <achurch@dragonfire.net>. diff --git a/include/bahamut.h b/include/bahamut.h index 691342a79..b49b064df 100644 --- a/include/bahamut.h +++ b/include/bahamut.h @@ -1,6 +1,6 @@ /* Bahamut functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/commands.h b/include/commands.h index 28226b14f..703842690 100644 --- a/include/commands.h +++ b/include/commands.h @@ -1,6 +1,6 @@ /* Declarations for command data. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/config.h b/include/config.h index c260b72af..eb4eaf168 100644 --- a/include/config.h +++ b/include/config.h @@ -1,6 +1,6 @@ /* Services configuration. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/datafiles.h b/include/datafiles.h index 568f8917f..32f168ca1 100644 --- a/include/datafiles.h +++ b/include/datafiles.h @@ -1,6 +1,6 @@ /* Database file descriptor structure and file handling routine prototypes. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/defs.h b/include/defs.h index c2993d270..7afa5d45b 100644 --- a/include/defs.h +++ b/include/defs.h @@ -1,6 +1,6 @@ /* Set default values for any constants that should be in include files but * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/depricated.h b/include/depricated.h index 0966a073e..4946aa907 100644 --- a/include/depricated.h +++ b/include/depricated.h @@ -1,6 +1,6 @@ /* depricated.h * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/dreamforge.h b/include/dreamforge.h index 414e0639c..f3ed0858c 100644 --- a/include/dreamforge.h +++ b/include/dreamforge.h @@ -1,6 +1,6 @@ /* DreamForge IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/encrypt.h b/include/encrypt.h index e31e44ea7..e786fd1de 100644 --- a/include/encrypt.h +++ b/include/encrypt.h @@ -1,6 +1,6 @@ /* Include file for high-level encryption routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/extern.h b/include/extern.h index 0fb04b781..410236363 100644 --- a/include/extern.h +++ b/include/extern.h @@ -1,6 +1,6 @@ /* Prototypes and external variable declarations. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/hybrid.h b/include/hybrid.h index 74c69c3a1..e74807dfc 100644 --- a/include/hybrid.h +++ b/include/hybrid.h @@ -1,6 +1,6 @@ /* Hybrid IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/messages.h b/include/messages.h index f1de39648..d966131d9 100644 --- a/include/messages.h +++ b/include/messages.h @@ -1,6 +1,6 @@ /* Declarations of IRC message structures, variables, and functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/modules.h b/include/modules.h index c05d86151..2a3025586 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1,6 +1,6 @@ /* Modular support * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/plexus.h b/include/plexus.h index 7d83d9bd2..d1c3eac5e 100644 --- a/include/plexus.h +++ b/include/plexus.h @@ -1,6 +1,6 @@ /* PlexusIRCD IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/pseudo.h b/include/pseudo.h index f543d8a6c..09c7b6f4c 100644 --- a/include/pseudo.h +++ b/include/pseudo.h @@ -1,6 +1,6 @@ /* Include extra includes needed by most/all pseudo-clients. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/ptlink.h b/include/ptlink.h index e97c59a0c..66b34e988 100644 --- a/include/ptlink.h +++ b/include/ptlink.h @@ -1,6 +1,6 @@ /* PTLink IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/rageircd.h b/include/rageircd.h index 977f5adfd..74ae926d8 100644 --- a/include/rageircd.h +++ b/include/rageircd.h @@ -1,6 +1,6 @@ /* Rage IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/ratbox.h b/include/ratbox.h index 28eb9b9d7..12236e6dc 100644 --- a/include/ratbox.h +++ b/include/ratbox.h @@ -1,6 +1,6 @@ /* Ratbox IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/services.h b/include/services.h index c827ba418..4523e2e34 100644 --- a/include/services.h +++ b/include/services.h @@ -1,6 +1,6 @@ /* * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. @@ -240,9 +240,9 @@ struct ircdvars_ { int vident; /* Supports vidents */ int svshold; /* Supports svshold */ int tsonmode; /* Timestamp on mode changes */ - int nickip; /* Sends IP on NICK */ - int omode; /* On the fly o:lines */ - int umode; /* change user modes */ + int nickip; /* Sends IP on NICK */ + int omode; /* On the fly o:lines */ + int umode; /* change user modes */ int nickvhost; /* Users vhost sent during NICK */ int chgreal; /* Change RealName */ int extrahelp; /* Lang file entry for extra */ @@ -257,17 +257,18 @@ struct ircdvars_ { int check_nick_id; /* On nick change check if they could be identified */ int knock_needs_i; /* Check if we needed +i when setting NOKNOCK */ char *chanmodes; /* If the ircd sends CHANMODE in CAPAB this is where we store it */ - int token; /* Does Anope support the tokens for the ircd */ + int token; /* Does Anope support the tokens for the ircd */ int tokencaseless; /* TOKEN are not case senstive - most its Unreal that is case senstive */ - int sjb64; /* Base 64 encode TIMESTAMP */ - int invitemode; /* +I */ - int sjoinbanchar; /* use single quotes to define it */ - int sjoinexchar; /* use single quotes to define it */ + int sjb64; /* Base 64 encode TIMESTAMP */ + int invitemode; /* +I */ + int sjoinbanchar; /* use single quotes to define it */ + int sjoinexchar; /* use single quotes to define it */ int svsmode_ucmode; /* Can remove User Channel Modes with SVSMODE */ int sglineenforce; char *vhostchar; /* char used for vhosting */ int ts6; /* ircd is TS6 */ int supporthelper; /* +h helper umodes */ + int p10; /* ircd is P10 */ }; struct ircdcapab_ { diff --git a/include/slist.h b/include/slist.h index 904c503f0..a3e05650f 100644 --- a/include/slist.h +++ b/include/slist.h @@ -1,6 +1,6 @@ /* Header for Services list handler. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/solidircd.h b/include/solidircd.h index ac34de13c..51e97be54 100644 --- a/include/solidircd.h +++ b/include/solidircd.h @@ -1,6 +1,6 @@ /* Bahamut functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/timeout.h b/include/timeout.h index d86ab5d4b..64c205b03 100644 --- a/include/timeout.h +++ b/include/timeout.h @@ -1,6 +1,6 @@ /* Time-delay routine include stuff. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/ultimate2.h b/include/ultimate2.h index 20423ac75..e64b5ec35 100644 --- a/include/ultimate2.h +++ b/include/ultimate2.h @@ -1,6 +1,6 @@ /* Ultimate IRCD 2 functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/ultimate3.h b/include/ultimate3.h index cd1e51238..bf52a844d 100644 --- a/include/ultimate3.h +++ b/include/ultimate3.h @@ -1,6 +1,6 @@ /* Ultimate IRCD 3.0 functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/unreal31.h b/include/unreal31.h index 6b30e85a4..53dceb35b 100644 --- a/include/unreal31.h +++ b/include/unreal31.h @@ -1,6 +1,6 @@ /* Unreal IRCD 3.1.x functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/unreal32.h b/include/unreal32.h index ddbc206a7..fc628c30f 100644 --- a/include/unreal32.h +++ b/include/unreal32.h @@ -1,6 +1,6 @@ /* Unreal IRCD 3.2.x functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/include/viagra.h b/include/viagra.h index d13548598..bb8c1212c 100644 --- a/include/viagra.h +++ b/include/viagra.h @@ -1,6 +1,6 @@ /* Viagra IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/lang/cat.l b/lang/cat.l index 9742c5c9e..f703addfa 100644 --- a/lang/cat.l +++ b/lang/cat.l @@ -1,6 +1,6 @@ # Catalan Language File. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ # Deutsches Language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. diff --git a/lang/en_us.l b/lang/en_us.l index 539543c22..5d09c2950 100644 --- a/lang/en_us.l +++ b/lang/en_us.l @@ -1,6 +1,6 @@ # United States English language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for further details. @@ -1,6 +1,6 @@ # Spanish Language File. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ # French language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ # Greek language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. diff --git a/lang/hun.l b/lang/hun.l index cd3dd439d..2e24bfd7d 100644 --- a/lang/hun.l +++ b/lang/hun.l @@ -1,6 +1,6 @@ # Hungarian (magyar) language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Translated by: @@ -1,6 +1,6 @@ # Italian language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. diff --git a/lang/langcomp.c b/lang/langcomp.c index cca689263..185c6d61d 100644 --- a/lang/langcomp.c +++ b/lang/langcomp.c @@ -1,12 +1,14 @@ /* Compiler for language definition files. * - * Epona (c) 2000-2002 PegSoft - * Contact us at epona@pegsoft.net + * (C) 2003-2005 Anope Team + * Contact us at info@anope.org * - * This program is free but copyrighted software; see the file COPYING for - * details. + * Please read COPYING and README for further details. * + * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. + * + * $Id$ * */ @@ -1,6 +1,6 @@ # Dutch Language File # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -9,7 +9,7 @@ # Wersja serwisów/Anope version: 1.7.4 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ # Portuguese language file. # -# (C) 2005 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ -# Russian language file for Anope 1.5.10. +# Russian language file for Anope # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -1,6 +1,6 @@ # Turkish language file. # -# (C) 2003 Anope Team +# (C) 2003-2005 Anope Team # Contact us at info@anope.org # # Please read COPYING and README for furhter details. diff --git a/src/actions.c b/src/actions.c index 9a4a2c23e..bc1d16c1c 100644 --- a/src/actions.c +++ b/src/actions.c @@ -1,6 +1,6 @@ /* Various routines to perform simple actions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/bahamut.c b/src/bahamut.c index 755c89ced..5e40a7266 100644 --- a/src/bahamut.c +++ b/src/bahamut.c @@ -1,6 +1,6 @@ /* Bahamut functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -107,6 +107,7 @@ IRCDVar ircd[] = { NULL, /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/base64.c b/src/base64.c index 80f1f7a2c..68fa80b96 100644 --- a/src/base64.c +++ b/src/base64.c @@ -1,6 +1,6 @@ /* base64 routines. * - * (C) 2003 Anope Team + * (C) 2003-1005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/botserv.c b/src/botserv.c index 066378743..1931b8f6c 100644 --- a/src/botserv.c +++ b/src/botserv.c @@ -1,6 +1,6 @@ /* BotServ functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/channels.c b/src/channels.c index 48e4ec691..78bdbb045 100644 --- a/src/channels.c +++ b/src/channels.c @@ -1,6 +1,6 @@ /* Channel-handling routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/chanserv.c b/src/chanserv.c index ad90e3080..02e612baf 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -1,6 +1,6 @@ /* ChanServ functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/commands.c b/src/commands.c index e37eb574b..4ab6d90f1 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1,6 +1,6 @@ /* Routines for looking up commands in a *Serv command list. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/compat.c b/src/compat.c index 9437b18cf..9db98fc0f 100644 --- a/src/compat.c +++ b/src/compat.c @@ -1,6 +1,6 @@ /* Compatibility routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/config.c b/src/config.c index bfb3afc5f..a14e3c300 100644 --- a/src/config.c +++ b/src/config.c @@ -1,6 +1,6 @@ /* Configuration file handling. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/converter.c b/src/converter.c index 029dea1bd..ad950430c 100644 --- a/src/converter.c +++ b/src/converter.c @@ -1,6 +1,6 @@ /* Database converters. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/datafiles.c b/src/datafiles.c index e2300a6ea..48f460f8c 100644 --- a/src/datafiles.c +++ b/src/datafiles.c @@ -1,6 +1,6 @@ /* Database file handling routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/dreamforge.c b/src/dreamforge.c index 74209826f..4193b9df9 100644 --- a/src/dreamforge.c +++ b/src/dreamforge.c @@ -1,6 +1,6 @@ /* DreamForge IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -105,6 +105,7 @@ IRCDVar ircd[] = { NULL, /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/encrypt.c b/src/encrypt.c index 7b7e3ee7a..2904180ec 100644 --- a/src/encrypt.c +++ b/src/encrypt.c @@ -1,6 +1,6 @@ /* Include file for high-level encryption routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/helpserv.c b/src/helpserv.c index 1ced1108f..7b69996e1 100644 --- a/src/helpserv.c +++ b/src/helpserv.c @@ -1,6 +1,6 @@ /* HelpServ functions * - * (C) 2003 Anope Team / GeniusDex + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/hostserv.c b/src/hostserv.c index 7a76dc668..82bdb07ce 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -1,6 +1,6 @@ /* HostServ functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/hybrid.c b/src/hybrid.c index 4301cc9e9..f48aa122f 100644 --- a/src/hybrid.c +++ b/src/hybrid.c @@ -1,6 +1,6 @@ /* Hybrid IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -105,6 +105,7 @@ IRCDVar ircd[] = { NULL, /* vhost char */ 0, /* ts6 */ 0, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/init.c b/src/init.c index d6a3fd0cb..2b77668eb 100644 --- a/src/init.c +++ b/src/init.c @@ -1,6 +1,6 @@ /* Initalization and related routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/language.c b/src/language.c index cfde0184d..a43e03d65 100644 --- a/src/language.c +++ b/src/language.c @@ -1,6 +1,6 @@ /* Multi-language support. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/list.c b/src/list.c index 80ff0d1cf..c177cd6ce 100644 --- a/src/list.c +++ b/src/list.c @@ -1,6 +1,6 @@ /* Routines to handle `listnicks' and `listchans' invocations. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -1,6 +1,6 @@ /* Logging routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/mail.c b/src/mail.c index 407896122..b2394400d 100644 --- a/src/mail.c +++ b/src/mail.c @@ -1,6 +1,6 @@ /* Mail utility routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/main.c b/src/main.c index e3eb8d05e..e544a4435 100644 --- a/src/main.c +++ b/src/main.c @@ -1,6 +1,6 @@ /* Services -- main source file. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/memory.c b/src/memory.c index c1e1ba1c3..415853416 100644 --- a/src/memory.c +++ b/src/memory.c @@ -1,6 +1,6 @@ /* Memory management routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/memoserv.c b/src/memoserv.c index db9d42e2c..7cf876785 100644 --- a/src/memoserv.c +++ b/src/memoserv.c @@ -1,6 +1,6 @@ /* MemoServ functions. * -* (C) 2003 Anope Team +* (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/messages.c b/src/messages.c index dac9cc358..3d79ad2b2 100644 --- a/src/messages.c +++ b/src/messages.c @@ -1,6 +1,6 @@ /* Definitions of IRC message functions and list of messages. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/misc.c b/src/misc.c index a238759b4..c1c2c7f7d 100644 --- a/src/misc.c +++ b/src/misc.c @@ -1,7 +1,7 @@ /* Miscellaneous routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/modules.c b/src/modules.c index ddaa609d7..32791dfd5 100644 --- a/src/modules.c +++ b/src/modules.c @@ -1,7 +1,7 @@ /* Modular support * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/mysql.c b/src/mysql.c index c426389e5..bdbdb9c3a 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -1,7 +1,7 @@ /* MySQL functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/news.c b/src/news.c index f303d5509..a85fbe4fa 100644 --- a/src/news.c +++ b/src/news.c @@ -1,7 +1,7 @@ /* News functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/nickserv.c b/src/nickserv.c index 377f87f52..ae97855e4 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -1,7 +1,7 @@ /* NickServ functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/operserv.c b/src/operserv.c index 11d1a2a51..91b8ef2ce 100644 --- a/src/operserv.c +++ b/src/operserv.c @@ -1,6 +1,6 @@ /* OperServ functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/plexus.c b/src/plexus.c index db0811631..835fcbc30 100644 --- a/src/plexus.c +++ b/src/plexus.c @@ -1,6 +1,6 @@ /* PlexusIRCD IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. @@ -105,6 +105,7 @@ IRCDVar ircd[] = { "h", /* vhost char */ 0, /* ts6 */ 0, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/process.c b/src/process.c index 838542fe1..2a3c04021 100644 --- a/src/process.c +++ b/src/process.c @@ -1,6 +1,6 @@ /* Main processing code for Services. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/proxy.c b/src/proxy.c index 0a6ff0d84..d1c90ff35 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1,6 +1,6 @@ /* Proxy detector. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/ptlink.c b/src/ptlink.c index 8025122ba..63ca9b117 100644 --- a/src/ptlink.c +++ b/src/ptlink.c @@ -1,6 +1,6 @@ /* PTLink IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -105,6 +105,7 @@ IRCDVar ircd[] = { NULL, /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/rageircd.c b/src/rageircd.c index 72ad08e08..8fa7de622 100644 --- a/src/rageircd.c +++ b/src/rageircd.c @@ -1,6 +1,6 @@ /* Rage IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -106,6 +106,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ }, {NULL} }; diff --git a/src/ratbox.c b/src/ratbox.c index 746ed8adb..2c0891395 100644 --- a/src/ratbox.c +++ b/src/ratbox.c @@ -1,6 +1,6 @@ /* Ratbox IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. @@ -107,6 +107,7 @@ IRCDVar ircd[] = { NULL, /* vhost char */ 1, /* ts6 */ 0, /* support helper umode */ + 0, /* p10 */ } , {NULL} @@ -849,19 +850,9 @@ void anope_cmd_join(char *user, char *channel, time_t chantime) { Uid *ud; - if (UseTS6) { - ud = find_uid(user); - if (ud) { - send_cmd(NULL, "SJOIN %ld %s + :%s", (long int) time(NULL), - channel, ud->uid); - } else { - send_cmd(NULL, "SJOIN %ld %s + :%s", (long int) time(NULL), - channel, user); - } - } else { - send_cmd(NULL, "SJOIN %ld %s + :%s", (long int) time(NULL), - channel, user); - } + ud = find_uid(user); + send_cmd(NULL, "SJOIN %ld %s + :%s", (long int) time(NULL), + channel, (UseTS6 ? (ud ? ud->uid : user) : user)); } /* @@ -876,7 +867,12 @@ reason: the reason for the kline. void anope_cmd_akill(char *user, char *host, char *who, time_t when, time_t expires, char *reason) { - send_cmd(s_OperServ, "KLINE * %ld %s %s :%s", + Uid *ud; + + ud = find_uid(s_OperServ); + + send_cmd((UseTS6 ? (ud ? ud->uid : s_OperServ) : s_OperServ), + "KLINE * %ld %s %s :%s", (long int) (expires - (long) time(NULL)), user, host, reason); } @@ -901,17 +897,10 @@ void anope_cmd_svskill(char *source, char *user, const char *fmt, ...) return; } - if (UseTS6) { - ud = find_uid(source); - ud2 = find_uid(user); - if (ud && ud2) { - send_cmd(ud->uid, "KILL %s :%s", ud2->uid, buf); - } else { - send_cmd(source, "KILL %s :%s", user, buf); - } - } else { - send_cmd(source, "KILL %s :%s", user, buf); - } + ud = find_uid(source); + ud2 = find_uid(user); + send_cmd((UseTS6 ? (ud ? ud->uid : source) : source), "KILL %s :%s", + (UseTS6 ? (ud2 ? ud2->uid : user) : user), buf); } void anope_cmd_svsmode(User * u, int ac, char **av) @@ -1113,17 +1102,10 @@ int anope_event_privmsg(char *source, int ac, char **av) return MOD_CONT; } - if (UseTS6) { - u = find_byuid(source); - ud = find_nickuid(av[0]); - if (u) { - m_privmsg(u->nick, (ud ? ud->nick : av[0]), av[1]); - } else { - m_privmsg(source, av[0], av[1]); - } - } else { - m_privmsg(source, av[0], av[1]); - } + u = find_byuid(source); + ud = find_nickuid(av[0]); + m_privmsg((UseTS6 ? (u ? u->nick : source) : source), + (UseTS6 ? (ud ? ud->nick : av[0]) : av[0]), av[1]); return MOD_CONT; } @@ -1174,9 +1156,6 @@ int anope_event_sid(char *source, int ac, char **av) /* :42X SID trystan.nomadirc.net 2 43X :ircd-ratbox test server */ - /* do_server(const char *source, char *servername, char *hops, - char *descript, char *numeric) */ - s = findserver_uid(servlist, source); do_server(s->name, av[0], av[1], av[3], av[2]); @@ -1201,11 +1180,7 @@ int anope_event_quit(char *source, int ac, char **av) u = find_byuid(source); - if (UseTS6 && u) { - do_quit(u->nick, ac, av); - } else { - do_quit(source, ac, av); - } + do_quit((UseTS6 ? (u ? u->nick : source) : source), ac, av); return MOD_CONT; } @@ -1,6 +1,6 @@ /* RDB functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/send.c b/src/send.c index dcf78ec47..e30bbd88a 100644 --- a/src/send.c +++ b/src/send.c @@ -1,6 +1,6 @@ /* Routines for sending stuff to the network. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/servers.c b/src/servers.c index 31c85f8e4..49e230fc3 100644 --- a/src/servers.c +++ b/src/servers.c @@ -1,6 +1,6 @@ /* Routines to maintain a list of connected servers * - * (C) 2004 Anope Team / GeniusDex + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -98,7 +98,11 @@ Server *new_server(Server * uplink, const char *name, const char *desc, serv->desc = sstrdup(desc); serv->flags = flags; serv->uplink = uplink; - serv->suid = sstrdup(suid); + if (suid) { + serv->suid = sstrdup(suid); + } else { + serv->suid = NULL; + } serv->sync = -1; serv->links = NULL; serv->prev = NULL; diff --git a/src/sessions.c b/src/sessions.c index 73bee9ad3..2bf0605ea 100644 --- a/src/sessions.c +++ b/src/sessions.c @@ -1,6 +1,6 @@ /* Session Limiting functions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/slist.c b/src/slist.c index a5fab3c7b..81bd62ab0 100644 --- a/src/slist.c +++ b/src/slist.c @@ -1,6 +1,6 @@ /* Services list handler implementation. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/sockutil.c b/src/sockutil.c index 06453cbf5..f6b3df156 100644 --- a/src/sockutil.c +++ b/src/sockutil.c @@ -1,6 +1,6 @@ /* Socket utility routines. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/solidircd.c b/src/solidircd.c index ba4e212a6..03ef11fc5 100644 --- a/src/solidircd.c +++ b/src/solidircd.c @@ -1,6 +1,6 @@ /* Solid-IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -105,6 +105,9 @@ IRCDVar ircd[] = { 0, /* Can remove User Channel Modes with SVSMODE */ 0, /* Sglines are not enforced until user reconnects */ "v", /* vhost char */ + 0, /* ts6 */ + 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} @@ -1567,7 +1570,7 @@ void anope_cmd_chg_nick(char *oldnick, char *newnick) return; } - send_cmd(oldnick, "NICK %s", newnick); + send_cmd(oldnick, "NICK %s :%ld", newnick, (long int) time(NULL)); } int anope_event_error(char *source, int ac, char **av) diff --git a/src/timeout.c b/src/timeout.c index bd7af4c8c..bc7705192 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -1,6 +1,6 @@ /* Routines for time-delayed actions. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/tools/anopesmtp.c b/src/tools/anopesmtp.c index 3b9eabe6c..12949c9f9 100644 --- a/src/tools/anopesmtp.c +++ b/src/tools/anopesmtp.c @@ -1,6 +1,6 @@ /* smtp stuff handler for win32. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/src/tools/smtp.h b/src/tools/smtp.h index 0dc0a0cbb..bce460684 100644 --- a/src/tools/smtp.h +++ b/src/tools/smtp.h @@ -1,6 +1,6 @@ /* * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for furhter details. diff --git a/src/ultimate2.c b/src/ultimate2.c index 853e88286..7b1049650 100644 --- a/src/ultimate2.c +++ b/src/ultimate2.c @@ -1,6 +1,6 @@ /* Ultimate IRCD 2 functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -105,6 +105,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/ultimate3.c b/src/ultimate3.c index 30535d808..37fecc9b8 100644 --- a/src/ultimate3.c +++ b/src/ultimate3.c @@ -1,6 +1,6 @@ /* Ultimate IRCD 3 functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -107,6 +107,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ }, {NULL} }; diff --git a/src/unreal31.c b/src/unreal31.c index 07a73454c..014122cfc 100644 --- a/src/unreal31.c +++ b/src/unreal31.c @@ -1,6 +1,6 @@ /* Unreal IRCD 3.1.x functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -108,6 +108,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ }, {NULL} }; diff --git a/src/unreal32.c b/src/unreal32.c index 333d9a878..ddb553422 100644 --- a/src/unreal32.c +++ b/src/unreal32.c @@ -1,6 +1,6 @@ /* Unreal IRCD 3.2.x functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -107,6 +107,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ }, {NULL} }; diff --git a/src/users.c b/src/users.c index 732c26e29..ca7c31b60 100644 --- a/src/users.c +++ b/src/users.c @@ -1,6 +1,6 @@ /* Routines to maintain a list of online users. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/src/viagra.c b/src/viagra.c index f6b76978a..1599657ba 100644 --- a/src/viagra.c +++ b/src/viagra.c @@ -1,6 +1,6 @@ /* Viagra IRCD functions * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. @@ -8,6 +8,7 @@ * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. * + * $Id$ * */ @@ -105,6 +106,7 @@ IRCDVar ircd[] = { "x", /* vhost char */ 0, /* ts6 */ 1, /* support helper umode */ + 0, /* p10 */ } , {NULL} diff --git a/src/vsnprintf.c b/src/vsnprintf.c index d914ffc3c..b777847a4 100644 --- a/src/vsnprintf.c +++ b/src/vsnprintf.c @@ -1,6 +1,6 @@ /* An implementation of vsnprintf() for systems that don't have it. * - * (C) 2003 Anope Team + * (C) 2003-2005 Anope Team * Contact us at info@anope.org * * Please read COPYING and README for further details. diff --git a/version.log b/version.log index 28c2d910e..4a997594e 100644 --- a/version.log +++ b/version.log @@ -1,4 +1,4 @@ -# (C) 2003 Anope +# (C) 2003-2005 Anope # Contact us at info@anope.org # # Please read COPYING and README for furhter details. @@ -8,10 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="7" -VERSION_BUILD="555" +VERSION_BUILD="556" # $Log$ # +# BUILD : 1.7.7 (556) +# BUGS : N/A +# NOTES : synced headers so our copyright is 2005, Solid IRCD compiles again, fixed sstrdup() error, +# updated the documentation a bit, cleaned up ratbox a bit. +# # BUILD : 1.7.7 (555) # BUGS : N/A # NOTES : TS6 support, Ratbox support, lots of little bug fixes, updated documentation |