8087 Commits

Author SHA1 Message Date
peavey
255b59e44b Fix crash if OnCheckBan is called and there is no list, the if was reversed.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9679 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 15:04:22 +00:00
w00t
02bbbd0cdf Port from hottpd: Split src/socket.cpp out into src/cidr.cpp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9678 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 14:16:50 +00:00
peavey
d8d457dd18 Fix segfault on rehash and tweak the connect code.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9677 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:10:11 +00:00
peavey
17a77470c6 Fix some indenting.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9676 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:09:16 +00:00
peavey
a8bdf9887f Add defaults for SQLHost since comparing depends on them being initialised. Add also overload for operator!= for SQLhost.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9675 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 04:08:27 +00:00
peavey
6087d621f7 Fix restart code, by getting run path and argv before calling Cleanup()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9674 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-09 01:13:02 +00:00
brain
99a1ea0892 Add call to protocol interface to get useful info on the server map. Return a std::list of classes each of which has a server name, parent server name, user and oper count, and latency in millisecs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9673 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:40:11 +00:00
brain
2425244549 Make this nicer, rely on the last write event after the Write() that sends all the data, not on a timer
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9671 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:15:00 +00:00
brain
6f43a18a8a Remove the timeout stuff, it is not stable and not really required, we are not emulating apache here but making a bare minimum of compliance to pass along xml etc.
Personally i only really care about compliance with irc RFCs :p


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9669 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 22:02:08 +00:00
brain
92153766b5 When searching by servername without wildcards, conceal +i users no matter what craq the spec was on
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9668 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:27:49 +00:00
w00t
f34b371715 Possible todo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9666 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:06:46 +00:00
w00t
ff44d048a2 Clarify a comment that confused me
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9665 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 17:02:23 +00:00
w00t
c3e5246590 Rename to m_connectban
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9664 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:54:16 +00:00
w00t
80a4db3cb0 Prepare to rename this, change it's purpose from quitban to connect ban (was I smoking crack?)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9663 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:53:03 +00:00
w00t
d0646a9b10 Remove a level of nesting from this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9662 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-08 16:38:30 +00:00
w00t
9116764793 Masterful rewrite of User::AddBuffer to remove a string copy (and make more efficient) thanks to some nifty string manipulations. This should provide benefit on highly loaded nodes. This has *not* been thoroughly tested considering it's criticality, but I have spent the past ~4 hours writing and testing it, and it seems ok.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9661 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 21:53:30 +00:00
w00t
1bf397ca49 Add support for /nick 0: changes nick to UID, which can come in useful for circumstances when trying to connect while your nick is in use. Also supported by various others (ircd etc?). This also moves validation checking up a bit, avoiding two calls to IsNick in an obscure circumstance (hooray).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9660 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 18:54:14 +00:00
brain
69b42417f3 Make u_listmode more sensible and make it properly use WriteNumeric, and a few other misc fixes found during today
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9659 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-07 18:24:55 +00:00
brain
565173aedd Fix broken m_alias, cant preallocate and then push_back, because then its maxparams + size :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9658 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 22:34:45 +00:00
brain
d98358886d Fix bad throws and some other stuff in this module
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9657 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 22:05:19 +00:00
special
8d10212b91 Removed the verbosity in 'make clean' to fix issues with OpenBSD and possibly others
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9655 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 21:07:42 +00:00
peavey
95ff25c717 Fix typo +c => +C reported by alamar
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9653 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-06 21:04:28 +00:00
brain
3b2aed3757 Remove JOIN sending, all should be FJOIN
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9651 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:21:13 +00:00
w00t
d832f4b250 Snotice on failed oper.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9650 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:19:03 +00:00
w00t
2ebf1f0055 Okay, this was good in theory, but totally and utterly fucked in implementation. Rip out automatic global snotice code. It's not going to be *that* difficult to trigger global snotice with protocol interface now anyway I guess. We need to re-add calls to protocol interfaces in places like failed oper and so on.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9649 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 21:17:09 +00:00
w00t
1cae57dbf3 Don't propegate SETHOST, ChangeDisplayedHost sends out hostchange anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9648 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 20:39:40 +00:00
w00t
7ee0ade96a Un-break this so remote users still get RemoteMessage okay if targetted at a specific user, remove comment also as it's using PI now anyway
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9646 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 13:01:42 +00:00
brain
a4e252e003 Alter remotemessage here to not do what w00ts patch did, twice
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9645 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 12:51:25 +00:00
w00t
ac8e888fd0 Don't re-propegate CHGHOST unnecessarily
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9644 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 12:44:23 +00:00
brain
484bf7243e Add sanity checks to LoopCall to prevent miscalls like this by broken 3rd party modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9643 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 10:10:34 +00:00
peavey
bc4828bbbd fix LoopCalls to not send param count thus avoiding a crash in command parser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9642 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 10:07:55 +00:00
brain
287e4973e0 Calling wrong loopcall overloaded method, due to hasty search and replace earlier
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9641 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 10:05:47 +00:00
brain
6cc946d0a0 Fix warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9640 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 05:34:22 +00:00
peavey
50d0945486 and no need to cast parameters to std::string here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9639 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 03:56:48 +00:00
peavey
4dbb86cfec parameters are already std::string no need to cast here
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9638 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 03:52:49 +00:00
peavey
f9ef4ebc9d fix some unitialised vectors and tidy up a bit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9637 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 03:40:03 +00:00
peavey
e8bf6e5fdb Conversion complete, distclean compiles cleanly again. (If everything works is another story)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9636 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:53:08 +00:00
peavey
860d753071 Convert a few missing
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9635 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:47:50 +00:00
peavey
bf5a8dc97f Convertions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9634 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:43:28 +00:00
peavey
e95f77bc99 oops, fix this one.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9633 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:37:38 +00:00
peavey
82a5be10d0 Convert a few
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9632 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:35:06 +00:00
peavey
76b2c5c9cd Convert a few
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9631 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:34:46 +00:00
peavey
1b4925f99f Convert even more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9630 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:29:09 +00:00
peavey
943aae0168 Convert more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9629 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:25:06 +00:00
aquanight
b817341e21 Conversions
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9628 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 02:06:59 +00:00
peavey
dfaa7b4e52 Remove extra documented moduledir (reported by smartys). And move quietbursts documentaion from <option> section to <performance> section.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9627 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 01:10:16 +00:00
aquanight
a3d00f20ae Convert m_spanningtree
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9626 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 00:40:23 +00:00
peavey
8232baefbf and now aquanight, you can compile from m_m*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9625 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 00:21:24 +00:00
peavey
5f6955a43e Convert convert convert
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9624 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-05 00:18:01 +00:00
peavey
8e89fe75f9 converting m_d* done
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9623 e03df62e-2008-0410-955e-edbf42e46eb7
2008-05-04 23:57:02 +00:00