brain
0471fe2677
Removal of AES, this is no longer required. (This also eliminates code that isnt ours, and was some public domain crap)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5915 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-10 15:51:31 +00:00
brain
f559b94fa3
Add the stuff required for the InspSocketHook interface
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5890 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-09 19:25:10 +00:00
brain
768171fef9
Add OnRawSocketConnect, we've not had it till now because we've not needed it :)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5887 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-09 18:49:36 +00:00
brain
dfa831752c
Not yet tested -- allow iohooking of inspsockets
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5886 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-09 18:36:24 +00:00
brain
b57568ecc4
Bad w00tie bad, /who isnt checking +s for channel /who!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5883 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-07 23:00:43 +00:00
brain
3daff89138
Document FindInterface, PublishInterface, UnpublishInterface, fix a bug where the interface wasnt removed when it was decremented to 0 implementing modules
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5874 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-05 21:19:19 +00:00
brain
c3a7fb47d6
Untested, undocumented PublishInterface, UnpublishInterface, FindInterface.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5867 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-05 20:43:41 +00:00
brain
8f385c3006
This has changed again, i suggest you dont bother trying to keep up till im done :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5863 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-05 19:50:10 +00:00
brain
2ade6284f9
Change this a LOT.
...
<oper blah.... hash="md5|sha256" pass="blah...">
It will now only check pass if you put the hash= in, people have been bugging for this for a while.
note the m_oper_hash module will try and detect both m_sha256 and m_md5 now, and will provide /mkpasswd that can do either.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5862 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-05 19:36:26 +00:00
special
1abbafc07a
Added InspIRCd::GetTimeDelta() - previously m_alltime was using a hack to get the delta, which wasn't always reliable
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5827 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-29 22:41:41 +00:00
brain
9f34f8d94e
BuildExemptList is becoming pretty ugly. grr.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5819 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-27 17:45:16 +00:00
brain
439cff2dc8
Add OnBuildExemptList, which is used to build an exempt list when passing a privmsg on, but not directly processing it (m_spanningtree etc)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5818 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-27 17:19:28 +00:00
brain
ee3a514fe2
Add exception lists to OnUserMessage and OnUserNotice, to be used for smarter routing of messages in spanningtree amongst other things
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5817 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-27 17:03:47 +00:00
brain
0e8a718038
Update comments to reflect new API
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5807 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 18:12:50 +00:00
brain
2e52ff280d
Add extra parameter to OnUserPreNotice and OnUserPrePrivmsg, CUList &exempt_list, a list of users NOT to write to. By default it just contains the sender, you can add more.
...
This also bumps the module api version by one. added "CUList fixme" to peaveys module just so it builds, as this will be refactored to use the new feature that was just added :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5806 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 18:04:47 +00:00
special
1c912588dd
Removed <options:tempdir> - this hasn't been used since modules were updated to not copy before load (quite awhile ago)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5785 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-22 04:29:51 +00:00
peavey
06fd57cc35
fix for bug #175 , change OnUserRegister to return int, and if greater than 0 = user was quit and stop propagating to rest of loaded modules. Also bumb the module API version.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5783 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-21 23:22:04 +00:00
brain
7159842998
Fix all the _FORTIFY_SOURCE warnings except "punned pointer".
...
We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 00:43:35 +00:00
brain
e8722fcff8
Change from dos to unix line endings (how did these get in here?)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5765 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 17:31:01 +00:00
brain
e315b86451
bits_size must be protected, not private
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5764 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 01:14:05 +00:00
brain
023350a03f
Add \code and \endcode tags for doxygen
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5763 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 01:05:36 +00:00
brain
96495c2009
Fix a major whoopsie in that class i just added. It must be derived using virtual methods, because each TYPE of bitmask must have its own static allocation of flags. See the (long winded) comments.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5762 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 01:03:47 +00:00
brain
77300844a4
Reduce size of max number of bytes in a bitfield from a 4 or 8 byte field to a 1 byte field (unsigned char).
...
This still allows storage of 8*255 bits, which is MORE than enough (for the interested, its 2040 bits)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5761 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 00:32:35 +00:00
brain
8827eca1da
Properly document irc::dynamicbitmask
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5760 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-18 00:08:46 +00:00
brain
bc8ba059b9
Fix this so it works, passes test case. Provide a method to query for a bit and to return the total size in bytes of the bitset
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5758 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-17 23:51:35 +00:00
brain
11f7397023
Add irc::dynamicbitmask class. Feel free to take a look and offer suggestions, as far as i can tell its about as efficient as im going to make it.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5757 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-17 23:23:32 +00:00
brain
91f17cace8
Tidy up some stuff
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5753 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 22:20:51 +00:00
brain
28bd852c85
Comments, woo and yay
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5751 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 21:51:11 +00:00
brain
893242cff9
All of the void* cast stuff gone!!!
...
Todo: comment all this stuff...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5750 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 21:37:08 +00:00
brain
235b289194
Remove tons of pointer craq (theres still a tinnny bit more to remove)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5749 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 19:28:06 +00:00
brain
d66880ade5
We dont need this dummy value any more!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5746 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 23:07:34 +00:00
brain
16f3e8e0bc
Temporarily? remove the old gcc3.3 fix
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5745 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 22:39:55 +00:00
brain
004217daed
Tons of tweaks to the config stuff for the core
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5744 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 22:38:43 +00:00
brain
9f35df1ad1
Inherit ModuleException from std::exception rather than classbase
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5740 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 18:50:50 +00:00
peavey
b9552dc5be
Fix PruneWhoWas to actually work right on rehash. Add debug output to whowas. More code comments to whowas.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5734 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-13 08:15:35 +00:00
peavey
41f62a2a3b
add <whowas> config option to control whowas behaviour. *may break*
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5731 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-13 00:45:37 +00:00
brain
b3c2abf41e
When some (but not all) of the ports fail to bind on startup, give the user a list of the failed port/ip pairs on the terminal.
...
Other ircds dont do this, and say 'go read the log'. I say if we can output them to a log, why not the screen? :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5728 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-12 22:58:48 +00:00
brain
a9b538041a
Allow checking of overlapped ports. A bit of sensible thought prevents this from being O(n^2)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-11 15:46:00 +00:00
brain
c9029f8db2
Document irc::portparser with comments :-)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5693 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-11 15:28:18 +00:00
brain
69c3a32784
Add irc::portparser, a class to parse port ranges in the form "6660,6661,6662-6669,7000".
...
Needs testing, watch next few commits.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5690 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-11 15:17:40 +00:00
brain
2549304905
Add fix for patch #166 (this is a reasonably big one)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5679 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-10 20:13:59 +00:00
w00t
a733dbeabb
Patch from peavey to fix GCC3.3 crash correctly, without breaking other stuff randomly (<3.)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5663 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-09 10:23:55 +00:00
special
bc6df4be67
This should fix the empty iterator crash with gcc3.3 - thanks yet again to peaveydk for spending hours finding the issue and for the patch
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5662 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-08 04:02:05 +00:00
special
1fbd75d645
Added time syncing! This is fairly simple - servers exchange timestamps and use the lowest - but should get rid of the annoying bounces for those of us who can't depend on ntpd.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5649 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-05 00:47:08 +00:00
brain
026c55cafc
As requested by satmd, inspircd will now run with no client ports configured
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5643 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-04 13:20:42 +00:00
brain
e53d30bc6d
Merge peaveys patch, tracker #162
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5642 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-04 11:31:29 +00:00
brain
4c19dfeed8
Revert special's sqloper change, nice try but only half a biscuit.
...
With the old fix, it would echo out all the oper failure notices first then try again, annoying all the opers.
The new version uses a CommandParser method i added, to again use OnPreCommand, halt the /oper command, but after doing the sql lookup call the original handler of the OPER command with the original user and pass, so the original handler handles the definitive failure message.
DAMNIT STOP COMMITTING
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5636 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-03 08:30:37 +00:00
brain
c926070195
Please in the future everyone: DO NOT submit patches via nopaste. Nopaste is not designed for this, and mangles your patch so we cant apply it. gzip it instead!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5632 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-02 20:34:01 +00:00
brain
89a8a819fa
New events for special. Event id's "new_server" and "lost_server". The data is a pointer to a char* containing the server name.
...
Eventally, i might expand this to include more data about the server such as its 'gecos' field etc, but not just yet. Let me know what data you want first.
Event source is valid and will point at the protocol module.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5623 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-01 17:38:35 +00:00
brain
dc5d99a954
Error set handlin g for select socketengine, tidyup epoll
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5609 e03df62e-2008-0410-955e-edbf42e46eb7
2006-10-31 20:43:47 +00:00