4311 Commits

Author SHA1 Message Date
brain
69112caf3a Tidyup, avoid ternary if() on every iteration of a loop (bad brain bad)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5811 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 19:03:16 +00:00
brain
4490e273b1 SILENCE_CNOTICE, flag 't'. Needs testing, peavey should probably review to check it fits in with what he was doing :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5810 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 19:00:43 +00:00
brain
abf21c7f3f Fix to work with channel notices.
SILENCE_PRIVATE silences private PRIVMSG, SILENCE_NOTICE silences private NOTICE, and SILENCE_CHANNEL silences channel PRIVMSG *and* channel NOTICE.
This makes sense to me... :)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5809 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 18:55:29 +00:00
peavey
119dcd1c83 now using OnUserPreMessage exempt_list instead of OnPreCommand dup code for blocking of channel messages.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5808 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 18:44:37 +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
brain
69488d0a42 005 tokens: "ESILENCE SILENCE=999"
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5805 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 17:14:28 +00:00
brain
26b48eef0e Add a description to an exception in the constructor, also reformat all the if() without a space that om did :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5803 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 14:42:37 +00:00
brain
08e76f9e24 Tidy up space indents
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5802 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 14:02:23 +00:00
peavey
d6840c6147 fix a few confusing returns
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5801 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 05:57:49 +00:00
peavey
4745f13b70 Improved drop-in replacement for cmd /SILENCE. This first draft features server side blocking of private messages, channel messages, notices, invites based on the silence hostmask. Also you can make excludes to your SILENCE rules. See source for examples. Flames, comments, edits are welcomed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5800 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 05:49:49 +00:00
peavey
ed6b9c90fe Make numeric 443 ERR_USERONCHANNEL conform to the RFC
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5799 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 04:43:06 +00:00
brain
9ae7cd7bf3 Make silence list removals and additions a ton faster by making the silence list a map. Note that this probably wont port to peavey's improved silence, i wouldnt bother trying :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5798 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-26 02:33:42 +00:00
brain
307a31f794 Improve openssl detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5797 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-25 14:18:59 +00:00
brain
702aa22c5c whoops, !defined not undef!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5795 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 19:29:47 +00:00
brain
7c935373dc Make this smarter when we dont have pkg-config
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5794 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 19:26:12 +00:00
brain
f9181e7880 More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5793 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 19:08:52 +00:00
brain
1ef5c4e581 Fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5792 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 19:07:00 +00:00
brain
0c86ba0f22 Smarter openssl detection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5791 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 19:06:02 +00:00
brain
f13202da23 In answer to w00ts question, the channel might not exist, because of the following situation
user A exists on both servers.
When servers link, user A is collided, but one or both servers still get the FJOIN:  FJOIN #chan 1234 :@,A
of course, A is gone, the only join to the channel fails, so the channel actually doesnt exist at the end of the loop, so chan == NULL :)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5790 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-24 16:32:16 +00:00
w00t
c397545cd8 Fix #176, not sure how channel can't exist after being created, but apparantly it can happen
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5789 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-23 22:10:50 +00:00
w00t
b860407e96 Fix my fix, it crashed (thanks skenmy, sorry)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5787 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-22 19:29:52 +00:00
peavey
15d4695221 Disallow mode prefix # since it will mess up /whois and /privmsg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5786 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-22 17:44:34 +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
w00t
783f1640b6 Fix spurious deops on channel creation, pointed out by jilles, noted by a number of people. :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5784 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-21 23:32:01 +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
special
425337dbe0 Fixed gnutls_rpath.pl to do rpath for all paths, not just gnutls - this fixes an issue with systems that want to use libgcrypt or libgpg-error in nonstandard locations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5781 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-21 22:05:53 +00:00
brain
55b4bfe5e7 Remove space
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5780 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 16:41:41 +00:00
om
ae0f4c9d02 Ooops, remove my debug line
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5779 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 16:20:25 +00:00
om
87b531bf29 Also return for 7.x series > 7.3.15, this still wants testing :p (which versions actually have the functions, I'm pretty happy with the script working properly)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5778 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 16:19:46 +00:00
om
ca24e71f75 Hopefully uncraq this script enough to actually work, should return for versions > 8.1.4
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5777 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 16:13:28 +00:00
brain
73f81c0204 Merge pgsql stuff from darix, but im sure theres something to be looked at in the helper script
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5776 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 15:58:39 +00:00
brain
ff6b013f35 Use pkg-config to detect lib paths - thanks darix we've been looking for this for ages :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5772 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-19 01:10:01 +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
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
92bfc86d0f Remove some debug, add some comments, throw exception in Get() when passed an invalid irc::bitfield
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5759 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-17 23:58:23 +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
3f1e3f22b5 Make STATS i, y, c, n more relevent to 1.1
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5756 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-16 19:45:55 +00:00
w00t
4fbaee11ad Fix /whois on users with lots, and lots of channels (see /whois idleserv). Was broken by the indroduction of OnWhoisLine stuff.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5755 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-16 10:56:23 +00:00
brain
2ff0804fdb Add WHO flag 'm' to show users who have a mode sequence
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5754 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 23:17:02 +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
b456e8ec67 The array should no longer be static
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5752 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 21:53:24 +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
c25cf927e8 Don't allow a non-oper to view another users modes. This slightly tweaks the rfc, because the rfc says even opers shouldnt be able to view modes but thats just a backwards pain in the neck.
Also, remove the system from 1.0 whereby an oper CAN change a non-opers modes (except +o) because all this did was confuse services packages.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5748 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 17:16:54 +00:00
special
aca1075bd9 Added <oper:swhois> to m_swhois, which will override <type:swhois> if specified
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5747 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-15 00:10:46 +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
4482876dd3 Tidyup and tons of debug in here, to troubleshoot an ongoing issue with gcc3.3 and what seems like a stack corruption
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5743 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 21:36:14 +00:00
brain
a3de29f341 Another couple of 'forgot to memset's
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5742 e03df62e-2008-0410-955e-edbf42e46eb7
2006-11-14 20:01:01 +00:00