]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoAdd OnGarbageCollect method
brain [Sun, 24 Dec 2006 00:42:22 +0000 (00:42 +0000)]
Add OnGarbageCollect method

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6086 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDo garbage collection of hash map automatically every hour
brain [Sun, 24 Dec 2006 00:37:15 +0000 (00:37 +0000)]
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

17 years agoFix loop when quitting multiple users (this is probably whats eating cpu)
brain [Sun, 24 Dec 2006 00:34:13 +0000 (00:34 +0000)]
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

17 years agoBetter checks for NULL log handles
brain [Sat, 23 Dec 2006 23:58:26 +0000 (23:58 +0000)]
Better checks for NULL log handles

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6083 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWe can't log in SocketEngine::DelFd(), because the fd we're removing might just be...
brain [Sat, 23 Dec 2006 23:52:53 +0000 (23:52 +0000)]
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

17 years agoCrash on /rehash fixed (old code in here passed NULL, 0 as argc, argv, this is BAD...
brain [Sat, 23 Dec 2006 23:18:34 +0000 (23:18 +0000)]
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

17 years agoHash rehashing change
brain [Sat, 23 Dec 2006 23:06:37 +0000 (23:06 +0000)]
Hash rehashing change

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6080 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoClose logfile on rehash and reopen (it was only doing this on sighup for some reason)
brain [Sat, 23 Dec 2006 17:08:02 +0000 (17:08 +0000)]
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

17 years agoDont sleep if there is a diedelay of 0
brain [Sat, 23 Dec 2006 16:43:46 +0000 (16:43 +0000)]
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

17 years agoFix exit in wrong place, and add new exitcodes.h
brain [Sat, 23 Dec 2006 16:41:22 +0000 (16:41 +0000)]
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

17 years agoFix bug in m_dnsbl, a condition is always matched because someone was using unsigned...
brain [Sat, 23 Dec 2006 16:40:09 +0000 (16:40 +0000)]
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

17 years agoProgram termination (including SIGTERM) now calls InspIRCd::Cleanup() which does...
brain [Sat, 23 Dec 2006 16:06:16 +0000 (16:06 +0000)]
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

17 years agoFix issue where the last module to be loaded wasnt unloaded by restart
brain [Sat, 23 Dec 2006 15:14:54 +0000 (15:14 +0000)]
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

17 years agoCut down on debug on restart
brain [Sat, 23 Dec 2006 15:04:14 +0000 (15:04 +0000)]
Cut down on debug on restart

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6073 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUse GetModuleCount() rather than the member var
brain [Sat, 23 Dec 2006 15:01:26 +0000 (15:01 +0000)]
Use GetModuleCount() rather than the member var

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6072 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix glitch when restarting on 2nd pass of module unload
brain [Sat, 23 Dec 2006 14:57:15 +0000 (14:57 +0000)]
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

17 years agoAdd more comments.
brain [Sat, 23 Dec 2006 14:54:47 +0000 (14:54 +0000)]
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

17 years agoClose client sockets too (do these last)
brain [Sat, 23 Dec 2006 14:22:14 +0000 (14:22 +0000)]
Close client sockets too (do these last)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUnload as many modules as we can on restart, and close listeners
brain [Sat, 23 Dec 2006 14:19:33 +0000 (14:19 +0000)]
Unload as many modules as we can on restart, and close listeners

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6068 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRefactored /RESTART (and added InspIRCd::Restart(reason))
brain [Sat, 23 Dec 2006 14:06:57 +0000 (14:06 +0000)]
Refactored /RESTART (and added InspIRCd::Restart(reason))
Fixed bug in m_ziplinks, assigning instead of testing a var (gcc 4.1.1 picked up on this, 3.4 didnt)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6067 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agochange userrec int timeout to time_t since it's a timestamp made of TIME + users...
peavey [Fri, 22 Dec 2006 22:02:50 +0000 (22:02 +0000)]
change userrec int timeout to time_t since it's a timestamp made of TIME + users connection class timeout.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6066 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUninitialized values: fun for ALL the family this xmas time.
brain [Fri, 22 Dec 2006 21:27:42 +0000 (21:27 +0000)]
Uninitialized values: fun for ALL the family this xmas time.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6065 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd ConvToInt() template to go with ConvToStr() that we've had for a while
brain [Fri, 22 Dec 2006 20:45:38 +0000 (20:45 +0000)]
Add ConvToInt() template to go with ConvToStr() that we've had for a while

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6064 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoLine 1582 configreader.cpp
brain [Fri, 22 Dec 2006 20:32:59 +0000 (20:32 +0000)]
Line 1582 configreader.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6063 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove useless debug
brain [Fri, 22 Dec 2006 20:13:14 +0000 (20:13 +0000)]
Remove useless debug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6062 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRefactor connect allow/deny lines
brain [Fri, 22 Dec 2006 20:12:15 +0000 (20:12 +0000)]
Refactor connect allow/deny lines

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6061 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoReduce logging caused by mode changes
brain [Fri, 22 Dec 2006 17:45:05 +0000 (17:45 +0000)]
Reduce logging caused by mode changes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6060 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix for alias var names within aliases
brain [Fri, 22 Dec 2006 17:35:33 +0000 (17:35 +0000)]
Fix for alias var names within aliases

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6059 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFixed to compile properly with -O; keep in mind that this is not supported, use at...
special [Fri, 22 Dec 2006 00:57:18 +0000 (00:57 +0000)]
Fixed to compile properly with -O; keep in mind that this is not supported, use at your own risk.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6058 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemoved a pointless check in ./configure --clean that made it only work with one...
special [Thu, 21 Dec 2006 23:47:35 +0000 (23:47 +0000)]
Removed a pointless check in ./configure --clean that made it only work with one dash

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6057 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix for bug #180, logging is not threadsafe, mutex it (ew, luckily we dont log much)
brain [Thu, 21 Dec 2006 20:34:16 +0000 (20:34 +0000)]
Fix for bug #180, logging is not threadsafe, mutex it (ew, luckily we dont log much)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6056 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAnd back onto the SVN track...
brain [Thu, 21 Dec 2006 19:30:01 +0000 (19:30 +0000)]
And back onto the SVN track...

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6055 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoBeta 6, patchlevel 1 (lets try this again.)
brain [Thu, 21 Dec 2006 19:16:44 +0000 (19:16 +0000)]
Beta 6, patchlevel 1 (lets try this again.)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6053 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoProper fix for CS server crash, forgot to delete chanrec* from users chanlist on...
peavey [Thu, 21 Dec 2006 01:48:50 +0000 (01:48 +0000)]
Proper fix for CS server crash, forgot to delete chanrec* from users chanlist on PurgeEmptyChannels()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6052 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCrude hotfix to what's been crashing chatspike
peavey [Thu, 21 Dec 2006 01:04:53 +0000 (01:04 +0000)]
Crude hotfix to what's been crashing chatspike

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6051 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoThis should fix the issue with unsetting +J
special [Thu, 21 Dec 2006 00:40:15 +0000 (00:40 +0000)]
This should fix the issue with unsetting +J

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6050 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhen we handle a READ event on a user, return immediately.
brain [Tue, 19 Dec 2006 20:27:23 +0000 (20:27 +0000)]
When we handle a READ event on a user, return immediately.
This is  because the read event may remove the user, in which case the !empty and quituser check below will address invalid data!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6049 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix server prefix on JOIN.
w00t [Tue, 19 Dec 2006 18:02:13 +0000 (18:02 +0000)]
Fix server prefix on JOIN.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6048 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAvoid no such nick on non oper attempting to view modes of a user.
w00t [Mon, 18 Dec 2006 23:36:25 +0000 (23:36 +0000)]
Avoid no such nick on non oper attempting to view modes of a user.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6047 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agostd::string something = "";
brain [Mon, 18 Dec 2006 18:42:17 +0000 (18:42 +0000)]
std::string something = "";
is the most redundant and wasteful thing in the world, apart from unrealircd. BE GONE WITH IT!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6046 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhack a warning (unused var)
brain [Mon, 18 Dec 2006 18:40:36 +0000 (18:40 +0000)]
Whack a warning (unused var)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6045 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoThen, realize you got your subtraction back to front.
brain [Mon, 18 Dec 2006 18:39:41 +0000 (18:39 +0000)]
Then, realize you got your subtraction back to front.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6044 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoReally clever VOODOO.
brain [Mon, 18 Dec 2006 18:39:17 +0000 (18:39 +0000)]
Really clever VOODOO.
RegisteredUserCount() used to take longer to execute than UnregisteredUserCount(), as all unregged users are local, so you only need to count in the local
vector not the global map.
Therefore, make RegisteredUserCount() just return this:   this->UnregisteredUserCount() - clientlist.size()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6043 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRefactor dns.cpp to use an array of request types rather than map, for O(1) lookup...
brain [Mon, 18 Dec 2006 18:35:25 +0000 (18:35 +0000)]
Refactor dns.cpp to use an array of request types rather than map, for O(1) lookup time

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6042 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix bug in m_dnsbl: Only the first <dnsbl> tag would be processed.
w00t [Mon, 18 Dec 2006 12:17:06 +0000 (12:17 +0000)]
Fix bug in m_dnsbl: Only the first <dnsbl> tag would be processed.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6041 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix for new m_helpop
brain [Sun, 17 Dec 2006 22:15:17 +0000 (22:15 +0000)]
Fix for new m_helpop

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6040 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdvance the version number to beta7+SVN
brain [Sun, 17 Dec 2006 21:25:12 +0000 (21:25 +0000)]
Advance the version number to beta7+SVN

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6039 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoBranch for beta 6 Juletre
brain [Sun, 17 Dec 2006 16:37:55 +0000 (16:37 +0000)]
Branch for beta 6 Juletre

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6037 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix this (at last) to only log commands which are operonly
brain [Sun, 17 Dec 2006 15:24:09 +0000 (15:24 +0000)]
Fix this (at last) to only log commands which are operonly

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6036 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd this:
brain [Sun, 17 Dec 2006 14:40:34 +0000 (14:40 +0000)]
Add this:
#define CMD_LOCALONLY CMD_FAILURE
so that when we say 'return cmd_failure to not allow spanningtree to propogate the message', the constant itself documents the code instead and is more readable.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6035 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCorrectly send TS in JOIN so that services packages etc dont become desynched (plus...
brain [Sun, 17 Dec 2006 13:35:21 +0000 (13:35 +0000)]
Correctly send TS in JOIN so that services packages etc dont become desynched (plus our own protocol docs say we do this when we send JOIN, oops breaking my own standards now)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6034 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd a message to the makefile, when starting the build: "this will take a long time...
brain [Sun, 17 Dec 2006 13:28:50 +0000 (13:28 +0000)]
Add a message to the makefile, when starting the build: "this will take a long time, why not read our wiki while waiting for make to run"

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6033 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoDont use FJOIN to join users to channels outside the burst (revert to earlier betas...
brain [Sun, 17 Dec 2006 13:15:43 +0000 (13:15 +0000)]
Dont use FJOIN to join users to channels outside the burst (revert to earlier betas behaviour) which should prevent some spurious deops during normal
operation

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6032 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUse $^O rather than chomp(`uname`); - use perl's neat detection of the OS name :p
brain [Sun, 17 Dec 2006 03:24:27 +0000 (03:24 +0000)]
Use $^O rather than chomp(`uname`); - use perl's neat detection of the OS name :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6031 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake RemoveCommand private.
peavey [Sun, 17 Dec 2006 02:58:57 +0000 (02:58 +0000)]
Make RemoveCommand private.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6030 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoInvented safe delete-while-itering for hash_map.
peavey [Sun, 17 Dec 2006 02:46:47 +0000 (02:46 +0000)]
Invented safe delete-while-itering for hash_map.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6029 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoWhen receiving an FJOIN, if we have no local users, dont send deops, this just contri...
brain [Sun, 17 Dec 2006 02:18:03 +0000 (02:18 +0000)]
When receiving an FJOIN, if we have no local users, dont send deops, this just contributes to pointless server noise

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6028 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoHandle removal of permenant svsholds
brain [Sun, 17 Dec 2006 01:22:10 +0000 (01:22 +0000)]
Handle removal of permenant svsholds

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6027 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix potential crash, not enough parameters for va_arg when adding perm SVSHOLD
brain [Sun, 17 Dec 2006 01:18:29 +0000 (01:18 +0000)]
Fix potential crash, not enough parameters for va_arg when adding perm SVSHOLD

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6026 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix a little = turned into a ==
peavey [Sun, 17 Dec 2006 01:17:56 +0000 (01:17 +0000)]
Fix a little = turned into a ==

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6025 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUse safe iter for deleting while iterating
peavey [Sun, 17 Dec 2006 01:14:18 +0000 (01:14 +0000)]
Use safe iter for deleting while iterating

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6024 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agosomeone test this please
brain [Sun, 17 Dec 2006 01:07:28 +0000 (01:07 +0000)]
someone test this please

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6023 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoIf the caller said no linefeeds, dont bail, instead just turn the linefeeds into...
brain [Sun, 17 Dec 2006 00:35:05 +0000 (00:35 +0000)]
If the caller said no linefeeds, dont bail, instead just turn the linefeeds into spaces, so that
"aaaa
bbbb"
becomes "aaaa bbbb".

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6022 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFinally document <insane> tag, we've had this since like 1.0 beta 6, but we never...
brain [Sun, 17 Dec 2006 00:15:37 +0000 (00:15 +0000)]
Finally document <insane> tag, we've had this since like 1.0 beta 6, but we never documented it in the example config (oops)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6020 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd format="" value, at request of Emeric.
brain [Sat, 16 Dec 2006 23:15:50 +0000 (23:15 +0000)]
Add format="" value, at request of Emeric.
See: http://www.inspircd.org/forum/index.php/topic,245.0.html

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6019 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoConfig option added for prefixed channel NOTICEs and PRIVMSGs to turn on/off IRCU...
peavey [Sat, 16 Dec 2006 22:43:56 +0000 (22:43 +0000)]
Config option added for prefixed channel NOTICEs and PRIVMSGs to turn on/off IRCU style of adding prefix to outgoing text.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6018 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd stuff so that the core catches CoreException properly
brain [Sat, 16 Dec 2006 21:40:06 +0000 (21:40 +0000)]
Add stuff so that the core catches CoreException properly

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAllow linefeeds in this module in one value
brain [Sat, 16 Dec 2006 21:14:54 +0000 (21:14 +0000)]
Allow linefeeds in this module in one value

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6016 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoTidy up text formatting
brain [Sat, 16 Dec 2006 21:12:30 +0000 (21:12 +0000)]
Tidy up text formatting

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6015 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoChange m_helpop to use the new boolean flag in ReadConf for allowing newlines, tidy...
brain [Sat, 16 Dec 2006 21:10:01 +0000 (21:10 +0000)]
Change m_helpop to use the new boolean flag in ReadConf for allowing newlines, tidy up text formatting a bit.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6014 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd an optional parameter to ConfigReader::ReadValue which defines if we want linefee...
brain [Sat, 16 Dec 2006 21:04:47 +0000 (21:04 +0000)]
Add an optional parameter to ConfigReader::ReadValue which defines if we want linefeeds or not.
Tidy up some duplicated code in configreader (error reporting)
Change ModuleException to inherit from CoreException, have the configreader throw and catch its CoreException on fatal error

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6013 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix all the left out examples that dont get copied to the config dir on install
brain [Sat, 16 Dec 2006 18:39:53 +0000 (18:39 +0000)]
Fix all the left out examples that dont get copied to the config dir on install

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6012 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAdd some comments to explain whats going off in one of the TreeSocket constructors
brain [Sat, 16 Dec 2006 10:49:13 +0000 (10:49 +0000)]
Add some comments to explain whats going off in one of the TreeSocket constructors

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6011 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoNot sending capab when theres no transport module attached to a server socket
brain [Sat, 16 Dec 2006 10:28:15 +0000 (10:28 +0000)]
Not sending capab when theres no transport module attached to a server socket

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6010 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoGet rid of HelpopException, use ModuleException thats had reasons for ages now
brain [Sat, 16 Dec 2006 09:58:45 +0000 (09:58 +0000)]
Get rid of HelpopException, use ModuleException thats had reasons for ages now

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6009 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agow00t: the power to rewrite modules in the leap of a small tiredness barrier. helpop...
w00t [Sat, 16 Dec 2006 03:00:40 +0000 (03:00 +0000)]
w00t: the power to rewrite modules in the leap of a small tiredness barrier. helpop refactored to use a leet cached map lookup, should be fast, leet, cool, etc. I'm going to bed.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6008 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake SNO notice for +o global
peavey [Sat, 16 Dec 2006 02:55:53 +0000 (02:55 +0000)]
Make SNO notice for +o global

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6007 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake irc::spacify take 'const char*' instead of 'char*'
peavey [Sat, 16 Dec 2006 02:54:16 +0000 (02:54 +0000)]
Make irc::spacify take 'const char*' instead of 'char*'

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6006 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoMake irc::spacify take 'const char*' instead of 'char*'
peavey [Sat, 16 Dec 2006 02:54:03 +0000 (02:54 +0000)]
Make irc::spacify take 'const char*' instead of 'char*'

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6005 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoLinefeeds in quotes, just for w00t.
brain [Sat, 16 Dec 2006 02:23:00 +0000 (02:23 +0000)]
Linefeeds in quotes, just for w00t.
WARNING: THIS NEEDS SOME EXTRA STUFF TOMORROW: Someone remind me to add a 'no linefeeds' bool flag to ConfigReader::ReadValue, because a lot of values should NOT have linefeeds in!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6004 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove libIRCDaes.so from install
peavey [Sat, 16 Dec 2006 01:59:49 +0000 (01:59 +0000)]
Remove libIRCDaes.so from install

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6003 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoUsermode +G allowed opers to change other user's modes. As the core doesn't follow...
w00t [Sat, 16 Dec 2006 00:54:16 +0000 (00:54 +0000)]
Usermode +G allowed opers to change other user's modes. As the core doesn't follow this behaviour anymore, neither does it.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6002 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix setting of * for bans in m_messageflood, this has been broken for quite some...
brain [Sat, 16 Dec 2006 00:22:40 +0000 (00:22 +0000)]
Fix setting of * for bans in m_messageflood, this has been broken for quite some time and nobody noticed? :P
Spotted on barafranca, tested on chatspike.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6001 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove doc/supported, it's obsoleted by the wiki. Happy 6000 commits, everyone. :D
w00t [Fri, 15 Dec 2006 22:44:23 +0000 (22:44 +0000)]
Remove doc/supported, it's obsoleted by the wiki. Happy 6000 commits, everyone. :D

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6000 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agos/ChatSpike/InspIRCd/ development team
w00t [Fri, 15 Dec 2006 22:41:53 +0000 (22:41 +0000)]
s/ChatSpike/InspIRCd/ development team

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5999 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoAnd now, just to force you to recompile the *whole* ircd.. updated headers on the...
w00t [Fri, 15 Dec 2006 22:18:59 +0000 (22:18 +0000)]
And now, just to force you to recompile the *whole* ircd.. updated headers on the headers. :p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5998 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoStill more massive commit fun. Headers in include/ still to be done, else that's it.
w00t [Fri, 15 Dec 2006 22:03:27 +0000 (22:03 +0000)]
Still more massive commit fun. Headers in include/ still to be done, else that's it.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoJesus, look who's the commit whore today. More header updates, and removal of namespa...
w00t [Fri, 15 Dec 2006 21:45:30 +0000 (21:45 +0000)]
Jesus, look who's the commit whore today. More header updates, and removal of namespacing.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5996 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove global namespacing, makes modules compile FASTAH. Also massive update on heade...
w00t [Fri, 15 Dec 2006 21:33:22 +0000 (21:33 +0000)]
Remove global namespacing, makes modules compile FASTAH. Also massive update on headers (change to InspIRCd Development Team, extend copyright to 2007).

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5995 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoTry harder to make sure the ERROR string gets sent when closing a connection
brain [Fri, 15 Dec 2006 18:12:37 +0000 (18:12 +0000)]
Try harder to make sure the ERROR string gets sent when closing a connection

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5994 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCleaning up irrelevent stuff in channels.cpp
brain [Fri, 15 Dec 2006 17:32:16 +0000 (17:32 +0000)]
Cleaning up irrelevent stuff in channels.cpp

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5993 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove commented out FlushWriteBuf()
brain [Thu, 14 Dec 2006 21:30:21 +0000 (21:30 +0000)]
Remove commented out FlushWriteBuf()

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5992 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove misc debug
brain [Thu, 14 Dec 2006 20:43:39 +0000 (20:43 +0000)]
Remove misc debug

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5991 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix silly bug of the day.
brain [Thu, 14 Dec 2006 20:35:21 +0000 (20:35 +0000)]
Fix silly bug of the day.
User was only getting a userrec::chans entry added if they had any privelages on the channel. If they werent opped, voiced, or halfopped on join, no entry in the hash. Silly brain now added a:
user->chans[Ptr] = 0;
:p

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5990 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRemove FlushWriteBuffer() from DoBackgroundUserStuff(). Its no longer required here...
brain [Thu, 14 Dec 2006 19:51:56 +0000 (19:51 +0000)]
Remove FlushWriteBuffer() from DoBackgroundUserStuff(). Its no longer required here, it used to try and flush the buffer before we actually monitored write events, long ago, without seeing if it could write first, and wasted cpu. It should be removed now and doesnt seem to affect anything.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5989 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoCPU Usage percent in stats z! yay!
brain [Thu, 14 Dec 2006 19:30:42 +0000 (19:30 +0000)]
CPU Usage percent in stats z! yay!

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5988 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoChange how users are quit if they get a write error during the things they do.
brain [Thu, 14 Dec 2006 17:58:13 +0000 (17:58 +0000)]
Change how users are quit if they get a write error during the things they do.
Instead of QuitUser inside FlushWriteBuffer() (potentially *UNSAFE*), go back to using SetWriteError(),
but to ensure we dont get a cascade of bad write events from the socket engine, QuitUser the user before
returning in userrec::HandleEvent, after we can gaurantee ALL other reading or writing is done.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5987 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRefactor userrec::chans.
brain [Thu, 14 Dec 2006 17:46:47 +0000 (17:46 +0000)]
Refactor userrec::chans.
Old way: A vector of ucrec, MAXCHANS in size by default populated by NULLS, so you have to scan the vector to find an empty slot when joining a user, parting a user etc
New way: std::map<chanrec*, char> (the char holds their basic core permissions on the channel [voice, halfop, op])
This increases speed a ton, and removes some wtf-age.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5986 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoRefactoring:
brain [Thu, 14 Dec 2006 16:57:52 +0000 (16:57 +0000)]
Refactoring:
1) Chain together a resize and an append, to improve the buffer read efficiency
2) eliminate a const char* pointer by doing it purely with string, saving a data copy
3) use iterators rather than ints and vector::size() for spooling motd and rules files to users
4) change a usage of !length() to empty() to make it more readable

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5985 e03df62e-2008-0410-955e-edbf42e46eb7

17 years agoFix m_watch to properly use OnCleanup, and to delete pointer on quit
brain [Wed, 13 Dec 2006 22:48:55 +0000 (22:48 +0000)]
Fix m_watch to properly use OnCleanup, and to delete pointer on quit

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5984 e03df62e-2008-0410-955e-edbf42e46eb7