brain
f09013dd67
Whoops, found a bug in it anyway :p
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7791 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 20:08:05 +00:00
brain
b7e299c2e1
Implement feature in bug #395 reported by stealth, and tidy up a bit
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7789 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 18:52:07 +00:00
brain
3499c913a0
Fix for delete-when-we-shouldnt bug similar to what stskeeps found yesterday
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7787 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-21 18:41:24 +00:00
brain
74f26a0375
Checks for libgnugetopt in /usr/local/lib before continuing
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7785 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 21:05:44 +00:00
brain
2a0f1441ef
Improve this a lot
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7783 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:53:24 +00:00
brain
cf7c73ec7f
Extra stuff so that freebsd 4 may work (needs someone with this OS to test!)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7781 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 20:40:11 +00:00
brain
4b75046c49
Add comments explaining why we have sockaddr[2] so that nobody goes 'w...t..f...'
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7779 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:35:22 +00:00
brain
03a3ca9019
Fix a bug i just introduced while playing with the code
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7777 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:29:27 +00:00
brain
959e902e57
The only possibility for the issue sts found is that a socket is deleted but also ends up in the socket cull list somehow.
...
To ensure that the socket does not get deleted, remove the delete and replace with an explicit call to insert into the socket cull list.
We were grappling with these issues in early 1.1 with the userrec cull list, too.
NOTE for later 1.2's consider making CullList a base class which we can derive from to delete lists of other items than userrecs.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7775 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 18:02:50 +00:00
brain
96b776fd27
Add a pair of colons which should fix some KILL messages being dropped and fix some desyncs on nick collision
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7772 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 17:09:25 +00:00
brain
4fc1a35082
Fixes for m_nicklock desync
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7770 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:46:42 +00:00
brain
27ebe00e93
Increase max time difference to 600 secs
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7769 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:41:33 +00:00
brain
56488a7f6c
Whoops, i left a value out of the array, and gcc didnt warn!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7768 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:21:32 +00:00
brain
123edca101
Whoops! trunk-only fix to config reader so it doesnt bomb out if you omit an optional tag
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7767 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 16:15:38 +00:00
brain
6b453db541
Fix for bug #393 , needs QA and backport
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7765 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-20 00:12:53 +00:00
brain
fc8b284c2a
Add <hostchange:ports> to the m_hostchange module to implement feature in bug #363
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7762 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 20:52:57 +00:00
brain
cf4439ac5c
Add <connect:maxchans> as per feature bug #338 - combined with the last feature, this allows per-oper specific maxchans values, and even the same for non-opers!
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7761 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 20:14:05 +00:00
brain
c61fac32bc
Allow changing of an oper's host on oper up using <type:class> (give it a connect allow or deny line name) - implements bug #367
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7760 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 19:23:53 +00:00
brain
9130c31f74
Document connect:parent and connect:name
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7759 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 19:09:29 +00:00
brain
1c18eb24fa
Add <connect:inherit> and <connect:name>
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7758 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 19:06:35 +00:00
brain
9f1cefca61
Add extra stuff to make it work (and compile)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7757 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 17:16:50 +00:00
brain
49006f6330
Add some connect class stuff that is required for bug #367 plus some roadmap stuff (inherit one connect class from another, etc)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7756 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 17:04:45 +00:00
brain
bdeccadcac
Add 'A record' blacklist types. This will probably only go into 1.2, and needs some testing at some point.
...
Can someone please provide a working example for the wiki page, as i don't know of any such blacklists to test against.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7754 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 16:25:59 +00:00
brain
df4f0dc888
Allow support for multiple dns results per request. This is a significant change and should probably not be backported to stable.
...
This will allow for a fix to feature request bug #384
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7753 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 16:00:57 +00:00
brain
dfdb324f67
Add load warning, as suggested by Bricker
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7751 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 15:27:23 +00:00
brain
e24540666c
Pick up a few error conditions we didnt before in the config reader, and also increment line number correctly when 'real' newline is found in a value
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7749 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 14:07:25 +00:00
brain
9f58ebc0b1
Fix some /who oddities, fixes bug #383 amongst other issues. Nothing serious.
...
Ability to see users who share a common channel with you in /who *wildmask* now.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7746 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 13:36:41 +00:00
special
05c9585727
Added proper header handling, persistant connections, and working timeouts to m_httpd
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7743 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 11:03:27 +00:00
special
bb1b08b035
Improved compatibility with the JSON-RPC specification; beware, major overhauls are afoot.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7742 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 05:29:15 +00:00
special
3eed8d8021
Fixed a crash within the timeout for m_httpd sockets
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7740 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-19 05:00:12 +00:00
special
9799eabcfd
Added the <cloak:ipalways> and <cloak:lowercase> options. Patch by nenolod
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7737 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-18 14:40:19 +00:00
burlex
a9c356d140
* Fixed bug in m_banredirect where removing a ban on a channel with maxbans set would result in a "ban list full" message.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7735 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-17 19:43:42 +00:00
w00t
b22a79da8d
Change to virtual
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7733 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-17 14:57:52 +00:00
special
3bbc954b77
Fixed bug #390 (broken m_chanprotect noservices)
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7730 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-16 05:27:39 +00:00
brain
2f02a16a12
Removal of ifdef
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7728 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 21:44:46 +00:00
brain
dab5de9885
Fixed, i forgot the virtual when implementing this
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7725 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 21:26:36 +00:00
brain
8eb405767d
This is now correct.
...
No win32 #ifdefs in the base class, being as IOCPEngine is only built on windows we can put the code here without the need for ifdef.
The original check in socketengine_iocp was broken, copied burlex's fixed version into the child class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7724 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 21:25:58 +00:00
burlex
8cebdce093
* include/caller.h will now compile correctly on Windows platforms.
...
+ Implemented gettimeofday in win32 wrapper, link rtt's will now display in milliseconds.
* SocketEngine::BoundsCheckFd will now handle Windows event handler cases correctly. (fixing writing to sockets not working)
* Fixed VC71 project.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7723 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 20:41:30 +00:00
brain
bb35a0fa9c
Fix small typo found by danieldg
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7720 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 18:12:48 +00:00
special
6bdb96eef6
Changed m_messageflood to use PreMessage and PreNotice, because it may kick the user
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7719 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-15 01:39:12 +00:00
peavey
e9d1efc1ae
Fix new millisec /map to compile on windows, by ifndef gettimeofday out reverting back to seconds for latency.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7717 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-13 22:16:41 +00:00
w00t
410ab3372b
More changes from patch. Don't throttle opers due to server load.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7716 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-13 12:21:56 +00:00
w00t
901a295078
Commit some changes from third party patch. Thanks Avenger and HiroP. Patch review is not finished, there may be more changes to come.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7715 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-13 12:17:00 +00:00
brain
670247683c
Fix this so it works.
...
OBVIOUS WARNING FOR THE DUMB: Dont go overwriting .so files at random to test this, you WILL crash your ircd if you do this improprerly, this is a feature of the linux shared object loader.
If you want to test this, try with: rm cmd_whatever.so && echo "TESTTEST" >cmd_whatever.so, do NOT just do the echo.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7713 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-11 12:17:07 +00:00
brain
9595db021d
Allow rehash to attempt to load missing (and new) lib/cmd_*.so files, to allow users to fix an emergency situation you can create by trying to reload a corrupt .so without needing a restart
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7712 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-11 12:05:31 +00:00
brain
0f4caa7698
Make the return codes correct, and allow for LoadCommand without a user pointer
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7710 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-11 11:34:32 +00:00
brain
8683e1c80d
Provide error output on failure to load a core command; to console on startup, and to user on /reload
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7708 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-11 11:29:15 +00:00
peavey
0d59b84eb1
Fix a typo so it compiles.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7702 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-11 08:46:44 +00:00
brain
5f67bfbc8e
Fix possible sqllog crash (working blind here!) where it could attempt to delete a pointer without knowing if that pointer was valid. (NEVER EVER use operator[] to lookup a map value, always use ::find())
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7700 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-10 21:07:41 +00:00
w00t
ddbde20598
Fix non-opers using who on themselves when set +i
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7698 e03df62e-2008-0410-955e-edbf42e46eb7
2007-08-10 17:02:20 +00:00