7017 Commits

Author SHA1 Message Date
brain
be1286835c Add support for nick@server requested by many. We are not likely to backport this, cant actually find reference to it in rfc1459
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8424 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-30 22:49:46 +00:00
brain
6cc66282a5 A few more timesaving checks.
The more astute amongst you will have noticed all the Add?Line functions now look practically identical. This paves the way for us to have one generic one, but before we do this
i'd rather have us add an XLine* pointer to it, not a hostmask or something non-generic.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8423 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:37:47 +00:00
brain
b253374745 Add the lookup_lines stuff. Sorry i havent documented this yet, i am tired.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8422 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:35:17 +00:00
brain
145f7fbe60 Big fat fixme here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8421 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:24:29 +00:00
brain
22c83f35d4 Ok, now each xline will be in two places. The sorted vector and a map, each line type having its own map stored in a map of maps. (RTFS when its done)
This allows for faster checking for simple existence of a line for removal/adding without O(n) lookups


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8420 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:23:11 +00:00
brain
8782cde20b Compile fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8419 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:18:26 +00:00
brain
d67f0923b5 This commit is untested and breaks a lot of xline stuff. work in progress.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8418 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-29 00:15:10 +00:00
w00t
ae83416270 Make ELines cached, and check for ELined status in all the Matches for all the linetypes. Brain, SVN up before you overwrite my fixes to bits of this again :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8417 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:37:22 +00:00
w00t
7dbd30b89c Update User::exempt all the time we change an E:Line. Brain, can you check I've done this okay, and fix my XXX if you know how? ta.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8416 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:23:07 +00:00
brain
e8df3f491d YAR!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8415 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:20:09 +00:00
brain
402bb37950 Fix it all up, im done with the main bit of this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8414 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:17:43 +00:00
brain
d01372ab64 Grr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8413 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:17:11 +00:00
brain
774747d8ac Add Apply and DefaultApply.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8412 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:14:41 +00:00
w00t
02a1173a5e Fixify
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8411 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 21:00:19 +00:00
w00t
dece466300 Rewrite of XLineManager::ApplyLines to only apply pending lines. This ..doesn't seem to compile at the moment for me. Not tested, at all.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8410 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 20:59:00 +00:00
brain
1580ba87b9 I think this is done. Add overloaded Matches() which takes std::string and implement it in zline and qline, the rest dont need it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8409 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 20:29:53 +00:00
w00t
f5f716ea6f Move matches_qline to Matches, though this won't work properly .. :s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8408 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:54:36 +00:00
w00t
fd568fb528 Make E:Line/G:Line use the Matches stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8407 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:35:58 +00:00
w00t
a87326fb17 Make ZLine use Matches()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8406 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:32:23 +00:00
w00t
ba84759bf7 Fix this to pass a User
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8405 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:29:05 +00:00
brain
f428fe870d Done my part
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8404 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:26:22 +00:00
w00t
3f29514c37 Add a virtual Matches to XLine class, and override it appropriately for all derived classes. Most still need to be converted to use it, however. This will make ApplyLines change much easier than it is currently ..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8403 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:20:44 +00:00
brain
7361ed672e Forgot it should return false
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8402 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:07:06 +00:00
brain
e43b51239d Fixed w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8401 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 19:04:44 +00:00
w00t
9d5687922c Ignore this commit. *jedi mind trick*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8400 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 18:59:24 +00:00
w00t
ce9b1289c6 PERL PIE FOR ALL: Rename a fuckload of XLineManager's methods
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8399 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 18:44:49 +00:00
w00t
4840d5e775 - Tear out a useless load of XLine clutters that did nothing much except confuse things
- Revert back to early 1.0 design of using a single list for line storage. We'll make this work more efficiently than 1.0 though of course. This simplifies the code for expiry, checking, etc.
- Merge a bunch of sort callbacks into a single sort callback for class XLine.
- Horribly break apply_lines() for the time being.
.. and that's probably it.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8398 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 18:33:06 +00:00
w00t
f35e50f35c Add m_proxyscan -- someone can doubtless do a much better job of this, as it's mostly a proof of concept at the moment. Opens a socket, sends a predefined string, awaits a predefined response. It sucks right now :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8397 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-28 13:34:24 +00:00
brain
be9dea8b2c Add dz to other contributors, line up columns
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8394 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 18:34:50 +00:00
brain
8fd2f620ce Dont echo the JOIN to the user whos speaking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8393 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 15:38:27 +00:00
brain
407ebe550e Whoops loused up a tweak
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8392 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 15:32:59 +00:00
brain
a2180fadb0 Who flags now count as a wildcard for searching for privacy reasons, fixes bug #444 reported by Smartys
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8390 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 15:09:00 +00:00
brain
2ba3c38388 Whoops backwards
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8388 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 14:36:52 +00:00
brain
8adb22f193 Fix for bug in windows with backslash directory seperators in config path when used with <include> tag and a relative include path, reported by daurnimator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8386 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 14:31:58 +00:00
brain
f422c0c74d Now plays nice with m_invisible, and fix a bug which allows users who havent spoken on a +D channel to remain invisible if they dont speak before an op removes the +D mode
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8385 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 14:12:24 +00:00
brain
192ae99685 Remove debug stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8384 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-27 11:45:05 +00:00
brain
5a956ba846 Fix crashes and broken code in connect:parent stuff that got broken with introduction of connect:limit and slight refactor
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8382 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 23:22:35 +00:00
brain
c1917f619a Document m_delayjoin
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8381 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 21:14:14 +00:00
brain
5bf21cc850 Fix a pretty silly goof-up
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8380 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 21:10:20 +00:00
brain
57fdc4aa25 Typo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8379 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 21:00:03 +00:00
brain
a796450b8c Whoops, must be const
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8378 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:53:37 +00:00
brain
95962710e4 Whoops, change Implements to use it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8377 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:49:49 +00:00
brain
efa0823927 Add new event for this with gauranteed delivery of message BEFORE the text is sent out
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8376 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:48:58 +00:00
brain
ef3fba4334 Damnit! this should fix :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8375 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:34:30 +00:00
brain
703ff06290 Whoops, ballsed up the nameslist generation :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8374 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:24:32 +00:00
brain
d22271ed97 Seems to work! Are you impressed, w00t? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8373 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:15:18 +00:00
brain
371030bca7 Might work might not. dont know yet
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8372 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 20:03:06 +00:00
brain
7a2a85535c Not complete yet, won't work!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8371 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-26 19:48:17 +00:00
brain
5b45b2ceaa Disable pedantic for this. Third party headers do silly stuff. long long?!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8369 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:26:26 +00:00
brain
4f1c564a08 Document connect:limit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8368 e03df62e-2008-0410-955e-edbf42e46eb7
2007-10-25 21:21:13 +00:00