SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

-------- X2 5.2 Channel and Oper Services -------

Alright folks here it is. Complete channel and oper services for undernet ircd (IRCu) based IRC network. This version of x2 is compatable with undernet IRCu u2.10.11 or above. The u2.10.11.05 release is recommended.

I am hereby releasing the source to the channel services we at AfterNet have been using for several years to the general public, under the terms and conditions of the GNU public liscence.

-- Sharing --
It is my belief that the heart of the internet is dieing. Too many people have forgotten the benifits of free information and sharing, in favor of commercial moneymaking.
[upd: Since this plea first went out in ~1998, MANY service coders have made the noble decision to opensource their code. Services of all flavors and sizes are now available to anyone running an irc network. Keep it up-- we are all on the net together.]

By providing to you, this software which embodies thousands of hours of work, I hope to instill in you the will to in turn release whatever nifty program you may some day write, to the public for free. Please use this in any way it helps you, all I ask is that proper credit is given where due. When I see my work being passed off as somone elses with no credit, it makes me wonder if releasing future versions is worth it. If you make fixes, or neato improvements, please take a moment to email me a diff file containing your modifications. In this way all of us can share your work.

-Rubin (rubin@afternet.org)

-- X2 spotted in the wild --
Check it out! X2 based services are now running on the following nets!


Net A server X2 nick Usercount
AfterNET    irc.afternet.org    X2         300
AsylumNet   irc.asylum-net.org  X          700
TeleFragged irc.telefragged.com ChanServ   35
GDChat      irc.GDChat.org      X2         40
uNFaNet.Org irc.unfanet.org     X2         10
AbleNet     irc.ablenet.org     X2         25

Add your net? Email me. rubin@afternet.org

-- Changes --
------- Changes for 5.2 ------------------------ AfterNET swapped to a new and better IRCd (UnderNet IRCu + modifications) and is now not compatible with older IRCd's such as universal.

Some of the things changed:
* Fully support P10 tokens.
* Use extended numerics.
* Recognize the account (AC) token, but do nothing with it currently. JinX will (maybe) be the new service to use accounts. * Added new umodes and cmodes.
* Removed +h GODMODE and just left the /msg X2 GOD on/off thing.

------- Changes for 5.1 ------------------------ Note: This is a major upgrade. If you're upgrading from a 5.0.3 or earlier release, you should know that we've totally ditched the userlist system and rebuilt it from scratch. New system is login/pass based, but you can add 'secure' hostmasks if you dont want to put in a pass. All the ambiguity surrounding accesses and handles is gone, AND, 5.1 automatically upgrades from 5.0.3 data files too, so theres no hassle. It works quite differently from before however, so it will take some adjustment on the part of your users.

We also totally rewrote alomst every internal function to pass and accept references rather then passing individual strings around; the result we lookup information WAY less, use less memory, and (can you believe it) even less CPU then before.

Some of the many new features:
* Improved wingate checking. Also can scan for sub7 connections * New auto-routing feature, can "smartly" reconnect servers according to a map provided by you.
* More secure userlist scheme
* time limited channel suspensions with reason field and logging. * Automatically deletes unused channels and logs them. * crash problems with the calc command fixed * Now uses autoconf to create makefiles etc. * Help files support variable substitution for network, x2nick, cmdchar, etc * Spell checked everything
* Fixed hash size limit handling
* Internal optimizations
* Added support for run's P10 server protocol http://www.xs4all.nl/~carlo17/irc/P10.html Currently ONLY universal ircd (http://www.sf.net/projects/ircu) supports this.
* Nolonger supports P9 (undernet 2.10.07 or lower) ircd's. * Nolonger supports Hybrid TS4 servers.

---------- Changes in 5.0.3 --------
* The printf problems were much more severe then I thought. sending any command that gets logged (like say "help") with '%s %s %s %s' in it will crash the bot immediately! Yes, I realize now.. dont put arbitrary text as a format string to printf...... sigh. * Discovered a segfualt capability in 8ball; fixed. * Left an argument off send_to_user in 8ball syntax display line; fixed. * Tweaked a bit with the gatecheck functions.. they way they clean up may still be somewhat incorrect. (using a var that is free'd as the check part of a for loop) * Releasing source in CVS on http://x2serv.sourceforge.net * Increased the SEGSIZE defines for users and channels, as afternet has outgrown them. You should set those variables to around twice the size of the max number you ever expect to see. x2 will wallop when they are becomming ineffeciently small. * Fixed x2 not letting god mode opers reset owners passwords. * Fixed bug where long passwords would get truncated (and thus not work later). Passwords are now checked for length validity. * Fixed crash in SET SUSPEND code (left a pramiter off send_to_user again..) * fixed display of GATECHECK setting (was ERROR, now ignore,warn,gline) * Fixed arbitrary string used in sprintf format param in addop/master/owner etc.
* Made the days till unused chan expire length a setting in config.h (CHANEXPIREDAYS)
* Fixed bug (and compile warning) where I was saving 10bit int in a byte in a mode function.
* Added support for "x" usermode, which functions like undernets NEW +g mode. If you are using ircu2.10.07 you should change the ircu's +g to +x (or modify x2)
* Fixed small segfault when parsing corrupted CHANS/ file. * Made PING reply RFC compliant (some stat bots showd x2 as 'dead' since it didnt reply to pings technically correct)

---------- Changes in 5.0.2 ---------
* Added SCRIPTREG command
* Automated removal of unvisited channels * Fixed bug with UNREG command not deleteing data files * Fixed bug with accounting.log fprintf call that was causing random crashes ---------- Changes in 5.0.1 ---------
***** Minor maintainance release ****
* New cleaner Makefile
* Now you can build from the toplevel too.. * Patched to work on solaris and others without (v)snprintf * Gatecheck system fixed (many bugs found) ----------- Changes in 5.0 ----------
* SuperGline added, which glines ip's whose connections match a given pattern. * File functions now check for write errors, and wont erase data when a disk is full. * URL, description, more settings added to each channel. * Re-designed data files. All info now in individual channel data file, chan.dat is now only a list of registered channels. * MASTER level is now HELPER to avoid confusion about which is higher, master or owner. * BAN level is now LAMER to avoid confusion between +b and BAN level. * Re-wrote mask-access-checking functions to intelegently check and select one and only one mask for a user's current account. This was causing a lot of weird but hard to trace anomolies and bugs involving setting one matching masks info or password while having anothers access.. etc. * New wingate checking is non-blocking. Note this uses port 1080 socks gateway checking ONLY as port 23 checking sets off too many log alarms. * improved IRCOP command shows away status. Note away is not sent across netbursts on most ircd's so this wont be 100% accurate after a netsplit. * added time since last visit field to userlist commands. * fixed the motd (now x2.news) sent to all "new" owners as they join a channel for the first time since last x2.news update. use rehash to re-read the time from x2.news file. * improved 8ball now supports color, numer and location * added very simplistic CALC command to do +, -, *, /, and % math. * fixed so infolines arnt shown after a netsplit. * fixed bugs with jumping to different servers in the config file list. * added HYBRID TS4 protocol support (modified for future afternet). may not work in this release.. --- known bugs in this 5.0 alpha2 release --- * BANlist fields incorrect (should show reason not userlist info) * SET inchan/suspended not fully bug-free * SET nodelete not yet implimented
* regchan syntax "strange" and not as documented * removed settings from chanstat but not yet created a new command for users to view them.
----------- Changes in 4.6.2 --------
* Fixed buffer overflow in handles and passwords * Fixed lots of spelling errors (thanks weirdkevin) * added .voice and .devoice (like .op and .deop only with v) * Fixed tons of spelling errors and missing stuff in HELP (thanks weirdkevin) * Re-enabled and updated the INVITE command. * Fixed bugs involving peon and coowner. * Fixed SET features to work properly with peon and coowner.

----------- Changes in 4.6.1 ---------
* Fixed usermode +g handling to work with undernet 2.10.04 which uses g differently then afternet. (comment out #define AFTERNET in config.h) * Fixed tendancy to delete data files when having troubles creating temp files.
* Added command: BACKUP to tar up the logs and save them. This may only work with linux, as some versions of tar are different. * HOPEFULLY fixed weird memory thrash problem where x2 goes bonkers with internal checking errors, inability to open some files for write, bizar stuff goin on..

----------- Changes in 4.6 ------------ Its been two versions since last I released X2 to the world.. A lot of important things have happened. 4.4 had LOTS of buffer overflows.. its unstable at best. It had server mapping problems and often didnt see servers SQUIT correctly. Many small bugs and modifications have taken place.. more then I remember. Here is the big stuff:

  • All new socket functions. Now uses recv() and should be a bit faster.
  • Added PEON and COOWNER levels.
  • Added nifty debugging subsystem.
  • Fixed SQUIT tree parsing.
  • Fixed ircu2.10.04 +g conflict (be sure to #undef AFTERNET)
  • MUCH more..

The version 4.4 data files should load just fine with 4.6 but you can't go back once peons and coowners are added.


----------------- EOF -----------------


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.