5032 Commits

Author SHA1 Message Date
peavey
484229f5c6 Even more typos from Tyler...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6118 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 03:35:50 +00:00
peavey
9e9ec4253c Another minor typo discovered by Tyler.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6117 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 03:01:15 +00:00
peavey
f3f570b4fa Also add support for default values for ConfValueBool and ConfValueInteger in configreader, and for ReadFlag and ReadInteger in modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6116 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 01:48:55 +00:00
peavey
513917fcce Fix small typo found by Tyler.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6115 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 01:36:46 +00:00
peavey
63483aa395 Tidyup a few var inits for whowas and ircu style prefix.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6114 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 00:54:20 +00:00
peavey
047f09dd57 Add possibility to define default value for ConfValue in configreader and ReadConf in modules.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6113 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 00:51:20 +00:00
peavey
1bbe35d493 Fix m_httpd always crashing in destructor if no active Timeout.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6112 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-25 20:32:37 +00:00
peavey
a6bb2c2039 Cosmetic fix to stats z output.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6111 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-25 13:54:06 +00:00
brain
22a080c8f0 Fix ISON with multiple lines of ISON response, canonize the responses to weed out dupes, because trillian's irc support blows donkeys
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6110 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 23:25:43 +00:00
brain
7fa29d1e2f Fix broken +G for AnMaster (thanks for pointing out the bug)
Also: MAJOR speed increase for *any network that loads m_censor*!
It seems that this was looping all the censor items (not attempting a replace though) for all channels and users, even those that WERE NOT +G!
Fixed.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6109 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 22:17:24 +00:00
brain
081d2c8777 Correctly ignore commented out includes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6108 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 21:45:20 +00:00
brain
451f72067f Double whoops
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6107 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 21:28:20 +00:00
brain
4dfc2e1e51 Whoops!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6106 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 21:27:37 +00:00
brain
9ab4ee2ea0 SQLQuery operator% and operator, now support any data type
(these are templated, and pass the type through ConvToStr())


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6105 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 21:12:21 +00:00
brain
417a4183d8 Tidyup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6104 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 18:38:57 +00:00
brain
9206364b1c Tidyup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6103 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 18:38:29 +00:00
brain
326d76108e Add new people to /info
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6102 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 14:25:51 +00:00
brain
9628934933 Tidyup Leet Caps Like This, and display PID when performing operations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6101 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 13:38:32 +00:00
brain
561804ca61 Make gdb ignore sighup too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6100 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 13:33:03 +00:00
brain
6112fadab1 And fix obligitary brainfarts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6099 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 13:32:26 +00:00
brain
6d23826207 Whoops, crash on sighup due to passing null argv and argc (similar to rehash, throwback to old code)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6098 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 13:32:06 +00:00
brain
191adfdc7f Fix the launcher for two situations:
* pid file defined, but in a comment (ignore it)
* pid file not defined, because its no longer manditory (assume configdir/inspircd.pid)


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6097 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 13:28:42 +00:00
brain
9e23ac2074 Damnit, the comment caused a conflict :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6096 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 11:26:39 +00:00
brain
72a601b36c w00t was right, freebsd needs <getopt.h> too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6095 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 11:24:47 +00:00
brain
dfcfcb6f0e Added a comment /* GNUs smell */ to an #ifdef linux makes us put in
(what sort of craqsmoker puts posix standard functions that belong in unistd.h into getopt.h but only on linux? muppets).
#ifdef _GNU_SOURCE
#include <getopt.h>
#endif .....


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6094 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 11:18:02 +00:00
brain
dcad7974ce Change argument parsing to use getopt_long_only().
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6093 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 11:13:31 +00:00
brain
ce20c7be2f Fix --with-max-clients not taking a parameter (reported by erich)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6092 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 10:43:06 +00:00
peavey
7f6344e3ad Fix a bug in whowas that could desync list.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6091 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 04:01:45 +00:00
peavey
397a77259a Add whowas usage to stats z.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6090 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 01:43:19 +00:00
brain
c78bff4fb1 Neither should this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6089 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:53:00 +00:00
brain
69b3f63bb1 Relatively small typo fix
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6088 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:51:29 +00:00
brain
31f75f75be Add call for OnGarbageCollect to the hourly cleanup
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:43:02 +00:00
brain
b31a8ee0ad Add OnGarbageCollect method
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6086 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:42:22 +00:00
brain
73ddc65a28 Do garbage collection of hash map automatically every hour
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6085 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:37:15 +00:00
brain
f2dfc4be59 Fix loop when quitting multiple users (this is probably whats eating cpu)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6084 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-24 00:34:13 +00:00
brain
f85fdf431e Better checks for NULL log handles
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6083 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 23:58:26 +00:00
brain
e473ba1a25 We can't log in SocketEngine::DelFd(), because the fd we're removing might just be that of the logger!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6082 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 23:52:53 +00:00
brain
72da54c1c2 Crash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this is BAD BAD BAD.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6081 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 23:18:34 +00:00
brain
74c8913f72 Hash rehashing change
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 23:06:37 +00:00
brain
6cc7cd76fb Close logfile on rehash and reopen (it was only doing this on sighup for some reason)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6079 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 17:08:02 +00:00
brain
6c9a69cbad Dont sleep if there is a diedelay of 0
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6078 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 16:43:46 +00:00
brain
f9ef034ef5 Fix exit in wrong place, and add new exitcodes.h
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6077 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 16:41:22 +00:00
brain
de3978c580 Fix bug in m_dnsbl, a condition is always matched because someone was using unsigned int to check a return val that can be -1 *slap w00t*
Change around the way exit codes are formed so that we can return a sensible exit code that reflects why inspircd exited


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6076 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 16:40:09 +00:00
brain
e04f190f63 Program termination (including SIGTERM) now calls InspIRCd::Cleanup() which does most of the duties performed by InspIRCd::Restart().
This means that on controlled shutdown we give the modules a chance to unload, etc, and close our sockets and free ram in a proper way.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6075 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 16:06:16 +00:00
brain
c1316150a7 Fix issue where the last module to be loaded wasnt unloaded by restart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6074 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 15:14:54 +00:00
brain
f5f71bdfef Cut down on debug on restart
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6073 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 15:04:14 +00:00
brain
3a07789b15 Use GetModuleCount() rather than the member var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6072 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 15:01:26 +00:00
brain
d490ee11a8 Fix glitch when restarting on 2nd pass of module unload
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6071 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 14:57:15 +00:00
brain
1bfe43ebfd Add more comments.
Catch CoreException in cmd_restart, and if we catch one, just exit(0). Theres very little else we could do.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6070 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 14:54:47 +00:00
brain
4c8c7e6c70 Close client sockets too (do these last)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-23 14:22:14 +00:00