3040 Commits

Author SHA1 Message Date
brain
129416e519 Typedef an ugly iterator, dont send mode string if no modes were in the output sequence
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3867 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 20:43:03 +00:00
om
ecb76110fd A few more typedefs defined and put into use.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3866 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 20:38:26 +00:00
om
e7f08977f2 Add time.h include to inspircd.h. Random cleanups in channels.cpp, mostly using the typedef'ed names already defined rather than having the full template names everywhere. Remove some unneeded casts too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 20:08:30 +00:00
om
5fb54ac29a Assorted changes here, Extend() is not templated so you can pass it any pointer type and it will automatically be cast to char* for you. Also some speedups, store an iterator rather than calling find() once to check if it exists and again to access the value.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3864 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 19:30:48 +00:00
brain
3c272bcc1f More fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3863 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:45:40 +00:00
brain
984b228280 Typo fixes, move some stuff about
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3862 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:44:19 +00:00
brain
bc0f609622 INSERT foot INTO mouth WHERE user='Brain'
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3861 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:17:15 +00:00
brain
91f5356588 I hate HATE HATE templates.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3860 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:14:28 +00:00
brain
26df847378 istringstream not ostringstream
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3859 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:11:47 +00:00
brain
4dd8228ede Extra allowance for modes which have different number of params when being set to being unset (read as: jro smoking craq)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3858 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 12:11:00 +00:00
brain
b01e94da8f Start of new mode parser
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3857 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10 11:50:48 +00:00
brain
87f5ef38db Om's way is better and lets watchers change mode parameters for the modes theyre watching
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3856 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-09 20:50:12 +00:00
brain
772d6f16c0 Start of mode parser refactoring
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3855 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-09 20:40:47 +00:00
om
aa21503f06 Shuffle some more includes around, const reference a few functions in inspircd.*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3854 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-09 11:51:24 +00:00
om
77123f4dec Remove references to inspircd_io from these, stop configure making all the modules depend on it too. And remove some more un-needed includes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3853 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 22:33:46 +00:00
om
bf388b2bf1 Obsolete
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3852 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 18:09:22 +00:00
om
25b4d21f47 Remove uneccessary socket includes now included in socket.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3851 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 17:24:18 +00:00
om
19e361b2f1 ...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3850 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 17:12:08 +00:00
om
6b72ad31e5 Helps to svn add these too :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3849 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 17:11:32 +00:00
om
2f95780557 And remember to add this one, just a little header with the #ifdef GCC3 ... stuff that's repeated in about 56543432 places
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3848 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 17:10:03 +00:00
om
d54fbc71e2 Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits going into inspircd.*, doesn't look like I've broken anything... :P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 17:05:48 +00:00
om
315cd88a91 Remove some unused headers and unneeded casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3846 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 13:35:46 +00:00
nenolod
ab24f0dca4 - first steps towards a working IPv6 port. I'll work more on this tomorrow. :-P
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3845 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 01:35:02 +00:00
nenolod
ac6b0d3f1d - useless IPv6 yesno() for now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3844 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 01:12:14 +00:00
nenolod
60d9b67563 - fork off spanningtree module for UUID stuffs :o
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3843 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08 00:20:27 +00:00
om
39d2c7c6df Make WriteServ use WriteServ_NoFormat, code duplication = bad >:/
Change some weirdness using a stringstream for a simple append.
Force a flush of all opers' write buffers after they get the oper notice about a /DIE



git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3842 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-07 23:16:45 +00:00
om
e21c3bb140 Slight optimisation to config reader, looks nicer even if it's not faster.
Make ./inspircd script use -nolog (it already used -debug, which didn't exist until now!?)
Add commandline options -nolog and -debug, -debug forces all log messages to be output regardless of level. -nolog stops the logfile 
being written, so you can run with -debug without filling up your disk.
make clean && make install, apparently some of the core doesn't depend on inspircd_io.h in the makefiles..so it'll probably segfault if 
you don't.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3841 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-07 12:21:11 +00:00
om
69d39e0887 Same error message somewhere else, and actually define the const char* version of ConfVarEnum so it doesn't just return 1 all the time...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3840 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-07 11:51:03 +00:00
om
d2afbfcf42 Change error message so it's not 'out of range' when a tag doesn't exist
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3839 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-07 11:47:26 +00:00
w00t
a7b0c26a4c Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-06 02:25:20 +00:00
brain
ec48546cd0 More verbose error output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3837 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 20:06:38 +00:00
brain
0e8f466301 Connection refused bug is FIXED!!!!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3835 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 20:02:35 +00:00
om
f11a2d8a06 Remove 'validation' for server description and network name (didn't do anything)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3834 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 19:06:43 +00:00
brain
19cfbc8c3d Bad brain bad
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3832 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 17:26:17 +00:00
brain
a03731468e Tweaks to hopefully prevent 100% cpu use issue
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3831 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 17:23:34 +00:00
brain
5c1affaf21 Missing helperfuncs and someone took writeopers out of globals.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3830 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 16:12:34 +00:00
om
aa36987ef7 And the bit I missed... :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3829 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 14:30:47 +00:00
om
6f52f3ec67 Remove a load of unneeded debugging output
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3828 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 14:29:02 +00:00
brain
c8bfca5fdb Just indentation tidyups, dont worry i didnt break your lovely parser <3
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3827 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 10:19:01 +00:00
om
024c564e53 Optimisations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3826 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 07:44:05 +00:00
om
b450c43062 move do_whois to cmd_whois, i'm stopping now. really.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3825 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:47:22 +00:00
om
0a06756363 Add WriteOpers_NoFormat, now to remember what I wanted it for
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3824 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:43:26 +00:00
om
ea27cd70c9 Extra error detection, thwap me if this comes up with false positives
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3823 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:32:08 +00:00
om
24fc512fd9 Remove duplicate error messages
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3822 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:25:23 +00:00
om
98c867cf09 Die properly on included config file errors
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3821 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:22:52 +00:00
om
b68b58faba Undo the last tweak, which broke it, and show filenames in the error messages
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3820 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:21:14 +00:00
om
ea1a5c17b5 combine a couple of if()'s
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3819 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:15:20 +00:00
om
1796a63b82 Remove some random unneeded casts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3818 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 06:01:31 +00:00
om
54963bee70 All new shiny config parser, there's probably some bugs there somewhere but hey...I've been up all night. make clean before you try and compile this. Really. And nobody dare complain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 05:55:54 +00:00
w00t
7db1335b25 trivial: Made a slight error on that last commit, missed a bit.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3816 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04 05:53:22 +00:00