]> git.netwichtig.de Git - user/henk/code/inspircd.git/log
user/henk/code/inspircd.git
17 years agoPart 1 of my plan to take over the world. pay it no attention.
brain [Sun, 31 Dec 2006 20:24:37 +0000 (20:24 +0000)]
Part 1 of my plan to take over the world. pay it no attention.

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

17 years agoFix whoopsies
brain [Sun, 31 Dec 2006 19:19:41 +0000 (19:19 +0000)]
Fix whoopsies

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

17 years agoAdd missing feature: /rehash reinitializes dns subsytem (and can handle changed addre...
brain [Sun, 31 Dec 2006 19:17:04 +0000 (19:17 +0000)]
Add missing feature: /rehash reinitializes dns subsytem (and can handle changed addresses)

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

17 years agoFix broken LOLCODE
brain [Sun, 31 Dec 2006 13:29:46 +0000 (13:29 +0000)]
Fix broken LOLCODE

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

17 years agoTidyup a bit, get rid of some valgrind warnings.
peavey [Sun, 31 Dec 2006 11:40:28 +0000 (11:40 +0000)]
Tidyup a bit, get rid of some valgrind warnings.

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

17 years agoCasting for conciseness
brain [Sun, 31 Dec 2006 02:47:02 +0000 (02:47 +0000)]
Casting for conciseness

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

17 years agoMake this new idea O(1) instead of O(x*y)
brain [Sun, 31 Dec 2006 02:45:21 +0000 (02:45 +0000)]
Make this new idea O(1) instead of O(x*y)

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

17 years agoThanks AnMaster
brain [Sun, 31 Dec 2006 01:32:51 +0000 (01:32 +0000)]
Thanks AnMaster

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

17 years agoCache invalidation in the wrong place, fixes FHOST remote host change bug
brain [Sun, 31 Dec 2006 01:25:08 +0000 (01:25 +0000)]
Cache invalidation in the wrong place, fixes FHOST remote host change bug

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

17 years ago<hostname:charmap> defines the valid characters in a hostmask (this is for you webs...
brain [Sun, 31 Dec 2006 00:06:43 +0000 (00:06 +0000)]
<hostname:charmap> defines the valid characters in a hostmask (this is for you webs to obsolete your patch :p)

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

17 years agoIf a user has a QUIT message matching a KILL type filter, we cant KILL someone whos...
brain [Sat, 30 Dec 2006 22:11:13 +0000 (22:11 +0000)]
If a user has a QUIT message matching a KILL type filter, we cant KILL someone whos already quitting (what will they care) so treat it as BLOCK and filter their quit.

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

17 years agoMake filters work on PART and QUIT messages too.
brain [Sat, 30 Dec 2006 22:09:18 +0000 (22:09 +0000)]
Make filters work on PART and QUIT messages too.
NOTE: If you use the type 'block' on a PART or QUIT, the text of their part or quit message will be replaced with 'Reason filtered', as we cant block the entire line without breaking clients.
Satsifies request in bug #184

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

17 years agoMake it safe to lose connection to sql server.
peavey [Sat, 30 Dec 2006 21:59:22 +0000 (21:59 +0000)]
Make it safe to lose connection to sql server.

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

17 years agoInvalidate 'late' here too
brain [Sat, 30 Dec 2006 19:52:02 +0000 (19:52 +0000)]
Invalidate 'late' here too

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

17 years agoFix broken cloaking introduced by last commit (we need to invalidate the cache after...
brain [Sat, 30 Dec 2006 19:48:59 +0000 (19:48 +0000)]
Fix broken cloaking introduced by last commit (we need to invalidate the cache after setting the new string, not before)

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

17 years agoRemove a line of debug that could crash Log.
peavey [Sat, 30 Dec 2006 19:31:46 +0000 (19:31 +0000)]
Remove a line of debug that could crash Log.

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

17 years agoCached GetFullRealHost etc.
brain [Sat, 30 Dec 2006 19:30:53 +0000 (19:30 +0000)]
Cached GetFullRealHost etc.

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

17 years agoThis is a longshot, pls test AnnMaster.
peavey [Sat, 30 Dec 2006 18:07:20 +0000 (18:07 +0000)]
This is a longshot, pls test AnnMaster.

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

17 years agoProperly document support for libhamsters
brain [Sat, 30 Dec 2006 17:43:26 +0000 (17:43 +0000)]
Properly document support for libhamsters

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

17 years agoChange delays to 1 sec.
brain [Sat, 30 Dec 2006 17:14:52 +0000 (17:14 +0000)]
Change delays to 1 sec.
NOTE: The chances of this actually waiting for 1 sec on any sizeable network are miniscule

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

17 years agoThe world is coming to an end!!! RUN AWAY!
brain [Sat, 30 Dec 2006 16:38:23 +0000 (16:38 +0000)]
The world is coming to an end!!! RUN AWAY!

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

17 years agoFix typo in warning, and make it sound less like the world is coming to an end.
peavey [Sat, 30 Dec 2006 16:36:59 +0000 (16:36 +0000)]
Fix typo in warning, and make it sound less like the world is coming to an end.

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

17 years agoNow REHASH checks for same and old connections, same as the DNS resolver. So that...
peavey [Sat, 30 Dec 2006 16:29:04 +0000 (16:29 +0000)]
Now REHASH checks for same and old connections, same as the DNS resolver. So that the connections are only reset if things were changed. \o/

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

17 years agoTweaks to instantiate less stuff when writing to a bunch of users
brain [Sat, 30 Dec 2006 16:02:56 +0000 (16:02 +0000)]
Tweaks to instantiate less stuff when writing to a bunch of users

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

17 years agoTons of optimization of WriteChannel, WriteChannelWithServ, WriteCommon etc, dont...
brain [Sat, 30 Dec 2006 15:11:40 +0000 (15:11 +0000)]
Tons of optimization of WriteChannel, WriteChannelWithServ, WriteCommon etc, dont call userrec::GetFullHost or snprintf for every item, call it just once.
Turns O(n) calls for every write into O(~1) calls per write.
Remove some debug from the socketengines which makes debugging hard on large channels (write availability message)

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

17 years agoAdd unregistered user counter, this may also fix the (minor) m_conn_lusers shows...
brain [Sat, 30 Dec 2006 14:34:49 +0000 (14:34 +0000)]
Add unregistered user counter, this may also fix the (minor) m_conn_lusers shows current connection as unregged

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

17 years agoChange description for insp_aton since only a positive return means convertion was...
peavey [Sat, 30 Dec 2006 13:50:40 +0000 (13:50 +0000)]
Change description for insp_aton since only a positive return means convertion was a success.

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

17 years agoMajorly funk around with this, still needs check for config change on REHASH.
peavey [Sat, 30 Dec 2006 12:33:55 +0000 (12:33 +0000)]
Majorly funk around with this, still needs check for config change on REHASH.

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

17 years agoThat should make it load/unload, still needs REHASH done proper.
peavey [Sat, 30 Dec 2006 12:33:06 +0000 (12:33 +0000)]
That should make it load/unload, still needs REHASH done proper.

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

17 years agoFix for w00t
brain [Fri, 29 Dec 2006 23:57:38 +0000 (23:57 +0000)]
Fix for w00t

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

17 years agoFix my whoopsies
brain [Fri, 29 Dec 2006 23:38:48 +0000 (23:38 +0000)]
Fix my whoopsies

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

17 years agoThis doesnt need to be static
brain [Fri, 29 Dec 2006 23:35:35 +0000 (23:35 +0000)]
This doesnt need to be static

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

17 years agoAdd counter system for umodes to get rid of some O(n)
brain [Fri, 29 Dec 2006 23:34:47 +0000 (23:34 +0000)]
Add counter system for umodes to get rid of some O(n)

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

17 years agoFixed search and replace, code pilfered from m_alias (i think someone misread the...
brain [Fri, 29 Dec 2006 21:27:39 +0000 (21:27 +0000)]
Fixed search and replace, code pilfered from m_alias (i think someone misread the help for std::string::replace...)

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

17 years agoA few fixes, but i cant see why the reverse check doesnt work
brain [Fri, 29 Dec 2006 21:21:25 +0000 (21:21 +0000)]
A few fixes, but i cant see why the reverse check doesnt work

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

17 years agoOops slippy fingers.
peavey [Fri, 29 Dec 2006 15:40:26 +0000 (15:40 +0000)]
Oops slippy fingers.

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

17 years agoLess debug.
peavey [Fri, 29 Dec 2006 15:38:41 +0000 (15:38 +0000)]
Less debug.

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

17 years agoFix for rehash/load/unload.
peavey [Fri, 29 Dec 2006 15:38:04 +0000 (15:38 +0000)]
Fix for rehash/load/unload.

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

17 years agoFix desync (modes not being pushed to remote servers with send_mode event)
brain [Fri, 29 Dec 2006 11:01:05 +0000 (11:01 +0000)]
Fix desync (modes not being pushed to remote servers with send_mode event)

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

17 years agoMajorly rewrite to totally funk up SQL logging module. Works well with both MySQL...
peavey [Fri, 29 Dec 2006 05:13:21 +0000 (05:13 +0000)]
Majorly rewrite to totally funk up SQL logging module. Works well with both MySQL and PostGres now.

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

17 years agoWriting beyond malloc'ed mem of a char pointer will crash with a vengeance. Fix it...
peavey [Fri, 29 Dec 2006 05:03:55 +0000 (05:03 +0000)]
Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. Fix it by actually doing the +1 mentioned in the comment above, but lacking from the actual code.

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

17 years agoShould fix bug #183 (rconnect issues), thanks Bricker
special [Fri, 29 Dec 2006 03:47:02 +0000 (03:47 +0000)]
Should fix bug #183 (rconnect issues), thanks Bricker

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

17 years agoOops. Forgot table ircd_log_hosts.
peavey [Fri, 29 Dec 2006 02:05:45 +0000 (02:05 +0000)]
Oops. Forgot table ircd_log_hosts.

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

17 years agoWriting beyond malloc'ed mem of a char pointer will crash with a vengeance. Fix it...
peavey [Fri, 29 Dec 2006 01:46:13 +0000 (01:46 +0000)]
Writing beyond malloc'ed mem of a char pointer will crash with a vengeance. Fix it by actually doing the +1 mentioned in the comment above, but lacking from the actual code.

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

17 years agoForgot to init it, clean up mem leakage too and log X-Lines proper.
peavey [Fri, 29 Dec 2006 01:44:14 +0000 (01:44 +0000)]
Forgot to init it, clean up mem leakage too and log X-Lines proper.

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

17 years agoAlso using new interface methods, and maybe less crashage.
peavey [Fri, 29 Dec 2006 00:05:19 +0000 (00:05 +0000)]
Also using new interface methods, and maybe less crashage.

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

17 years agoChange the SQLutils and SQL providers to also use interfaces for proper unload order...
peavey [Thu, 28 Dec 2006 22:42:38 +0000 (22:42 +0000)]
Change the SQLutils and SQL providers to also use interfaces for proper unload order, taking away the need for a static m_sqlutils. Depend order: m_sqlutils -> sql providers (m_mysql m_pgsql) -> sql modules (m_sqlauth m_sqloper).

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

17 years agoCopyright header added.
peavey [Thu, 28 Dec 2006 22:19:04 +0000 (22:19 +0000)]
Copyright header added.

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

17 years agoJust a comment.
peavey [Thu, 28 Dec 2006 21:51:41 +0000 (21:51 +0000)]
Just a comment.

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

17 years agoSchema for sqloper for PostGre.
peavey [Thu, 28 Dec 2006 21:51:14 +0000 (21:51 +0000)]
Schema for sqloper for PostGre.

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

17 years agoSchema for PostGre.
peavey [Thu, 28 Dec 2006 21:44:46 +0000 (21:44 +0000)]
Schema for PostGre.

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

17 years agoFix mem leakage in reading in and connecting to databases and have destructor call...
peavey [Thu, 28 Dec 2006 20:29:27 +0000 (20:29 +0000)]
Fix mem leakage in reading in and connecting to databases and have destructor call mem cleanup too and end the endless loop too so /RESTART and /DIE works with no segfault.

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

17 years agomicroly minorly typo.
peavey [Thu, 28 Dec 2006 18:27:27 +0000 (18:27 +0000)]
microly minorly typo.

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

17 years agoAdd m_lockserv to example conf.
peavey [Thu, 28 Dec 2006 18:04:48 +0000 (18:04 +0000)]
Add m_lockserv to example conf.

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

17 years agoFix for empty 005 lines
brain [Thu, 28 Dec 2006 17:25:07 +0000 (17:25 +0000)]
Fix for empty 005 lines

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

17 years agoTidy up indenting in here and remove a ^M
brain [Thu, 28 Dec 2006 17:11:53 +0000 (17:11 +0000)]
Tidy up indenting in here and remove a ^M

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

17 years agoReasonably sized fix - when adding modes in modules, be sure to check the return...
brain [Thu, 28 Dec 2006 16:55:50 +0000 (16:55 +0000)]
Reasonably sized fix - when adding modes in modules, be sure to check the return value so we dont load two modules with conflicting modes

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

17 years agoAdd support for LOCKSERV/UNLOCKSERV to block/open for new connections. Thanks to...
peavey [Thu, 28 Dec 2006 15:26:29 +0000 (15:26 +0000)]
Add support for LOCKSERV/UNLOCKSERV to block/open for new connections. Thanks to LeaChim for first version too.

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

17 years agoAdd m_dnsbl to example conf.
peavey [Thu, 28 Dec 2006 14:27:55 +0000 (14:27 +0000)]
Add m_dnsbl to example conf.

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

17 years agoTidyup and is now a vendor module.
peavey [Thu, 28 Dec 2006 14:22:05 +0000 (14:22 +0000)]
Tidyup and is now a vendor module.

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

17 years agoWhoops unused variable.
peavey [Thu, 28 Dec 2006 13:46:53 +0000 (13:46 +0000)]
Whoops unused variable.

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

17 years agoAdd cleanup of objects on readconf and in destructor.
peavey [Thu, 28 Dec 2006 13:45:25 +0000 (13:45 +0000)]
Add cleanup of objects on readconf and in destructor.

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

17 years agoRemove an extra delete that caused a segfault.
peavey [Thu, 28 Dec 2006 13:38:15 +0000 (13:38 +0000)]
Remove an extra delete that caused a segfault.

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

17 years agoFix deprotectself=no not working.
peavey [Tue, 26 Dec 2006 23:22:42 +0000 (23:22 +0000)]
Fix deprotectself=no not working.

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

17 years agoBeta 8 track! (oh, and there are now officially more 1.1 betas than there were 1...
brain [Tue, 26 Dec 2006 20:40:09 +0000 (20:40 +0000)]
Beta 8 track! (oh, and there are now officially more 1.1 betas than there were 1.0 betas)

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

17 years agoCrux!
brain [Tue, 26 Dec 2006 20:02:13 +0000 (20:02 +0000)]
Crux!

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

17 years agohave configure detect SOMAXCONN and store it in a string define, SOMAXCONN_S
brain [Tue, 26 Dec 2006 18:03:41 +0000 (18:03 +0000)]
have configure detect SOMAXCONN and store it in a string define, SOMAXCONN_S

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

17 years agoAdd defaults for a ton of config vars, fix indentation, and add MAXCLIENTS_S to avoid...
brain [Tue, 26 Dec 2006 17:47:56 +0000 (17:47 +0000)]
Add defaults for a ton of config vars, fix indentation, and add MAXCLIENTS_S to avoid one of the itoa()'s

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

17 years agoChange to use std::string::iterator rather than making a copy of the pointer and...
brain [Tue, 26 Dec 2006 12:41:10 +0000 (12:41 +0000)]
Change to use std::string::iterator rather than making a copy of the pointer and using .c_str()

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

17 years agoJust a little tweak so trigger values makes more sense.
peavey [Tue, 26 Dec 2006 12:08:59 +0000 (12:08 +0000)]
Just a little tweak so trigger values makes more sense.

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

17 years agoDocument new blockcaps options in example conf.
peavey [Tue, 26 Dec 2006 11:48:59 +0000 (11:48 +0000)]
Document new blockcaps options in example conf.

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

17 years agoAdd support for config option for percent and minimum string length +P will trigger on.
peavey [Tue, 26 Dec 2006 11:44:32 +0000 (11:44 +0000)]
Add support for config option for percent and minimum string length +P will trigger on.

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

17 years agoAdd some defaults to serverconfig, removing need to set them in validate methods...
peavey [Tue, 26 Dec 2006 05:58:09 +0000 (05:58 +0000)]
Add some defaults to serverconfig, removing need to set them in validate methods. Still more to do in multitags.

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

17 years agoAdd Template itoa to convert integer to char*
peavey [Tue, 26 Dec 2006 05:55:45 +0000 (05:55 +0000)]
Add Template itoa to convert integer to char*

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

17 years agoEven more typos from Tyler...
peavey [Tue, 26 Dec 2006 03:35:50 +0000 (03:35 +0000)]
Even more typos from Tyler...

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

17 years agoAnother minor typo discovered by Tyler.
peavey [Tue, 26 Dec 2006 03:01:15 +0000 (03:01 +0000)]
Another minor typo discovered by Tyler.

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

17 years agoAlso add support for default values for ConfValueBool and ConfValueInteger in configr...
peavey [Tue, 26 Dec 2006 01:48:55 +0000 (01:48 +0000)]
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

17 years agoFix small typo found by Tyler.
peavey [Tue, 26 Dec 2006 01:36:46 +0000 (01:36 +0000)]
Fix small typo found by Tyler.

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

17 years agoTidyup a few var inits for whowas and ircu style prefix.
peavey [Tue, 26 Dec 2006 00:54:20 +0000 (00:54 +0000)]
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

17 years agoAdd possibility to define default value for ConfValue in configreader and ReadConf...
peavey [Tue, 26 Dec 2006 00:51:20 +0000 (00:51 +0000)]
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

17 years agoFix m_httpd always crashing in destructor if no active Timeout.
peavey [Mon, 25 Dec 2006 20:32:37 +0000 (20:32 +0000)]
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

17 years agoCosmetic fix to stats z output.
peavey [Mon, 25 Dec 2006 13:54:06 +0000 (13:54 +0000)]
Cosmetic fix to stats z output.

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

17 years agoFix ISON with multiple lines of ISON response, canonize the responses to weed out...
brain [Sun, 24 Dec 2006 23:25:43 +0000 (23:25 +0000)]
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

17 years agoFix broken +G for AnMaster (thanks for pointing out the bug)
brain [Sun, 24 Dec 2006 22:17:24 +0000 (22:17 +0000)]
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

17 years agoCorrectly ignore commented out includes
brain [Sun, 24 Dec 2006 21:45:20 +0000 (21:45 +0000)]
Correctly ignore commented out includes

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

17 years agoDouble whoops
brain [Sun, 24 Dec 2006 21:28:20 +0000 (21:28 +0000)]
Double whoops

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

17 years agoWhoops!
brain [Sun, 24 Dec 2006 21:27:37 +0000 (21:27 +0000)]
Whoops!

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

17 years agoSQLQuery operator% and operator, now support any data type
brain [Sun, 24 Dec 2006 21:12:21 +0000 (21:12 +0000)]
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

17 years agoTidyup
brain [Sun, 24 Dec 2006 18:38:57 +0000 (18:38 +0000)]
Tidyup

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

17 years agoTidyup
brain [Sun, 24 Dec 2006 18:38:29 +0000 (18:38 +0000)]
Tidyup

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

17 years agoAdd new people to /info
brain [Sun, 24 Dec 2006 14:25:51 +0000 (14:25 +0000)]
Add new people to /info

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

17 years agoTidyup Leet Caps Like This, and display PID when performing operations
brain [Sun, 24 Dec 2006 13:38:32 +0000 (13:38 +0000)]
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

17 years agoMake gdb ignore sighup too
brain [Sun, 24 Dec 2006 13:33:03 +0000 (13:33 +0000)]
Make gdb ignore sighup too

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

17 years agoAnd fix obligitary brainfarts
brain [Sun, 24 Dec 2006 13:32:26 +0000 (13:32 +0000)]
And fix obligitary brainfarts

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

17 years agoWhoops, crash on sighup due to passing null argv and argc (similar to rehash, throwba...
brain [Sun, 24 Dec 2006 13:32:06 +0000 (13:32 +0000)]
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

17 years agoFix the launcher for two situations:
brain [Sun, 24 Dec 2006 13:28:42 +0000 (13:28 +0000)]
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

17 years agoDamnit, the comment caused a conflict :<
brain [Sun, 24 Dec 2006 11:26:39 +0000 (11:26 +0000)]
Damnit, the comment caused a conflict :<

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

17 years agow00t was right, freebsd needs <getopt.h> too
brain [Sun, 24 Dec 2006 11:24:47 +0000 (11:24 +0000)]
w00t was right, freebsd needs <getopt.h> too

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

17 years agoAdded a comment /* GNUs smell */ to an #ifdef linux makes us put in
brain [Sun, 24 Dec 2006 11:18:02 +0000 (11:18 +0000)]
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

17 years agoChange argument parsing to use getopt_long_only().
brain [Sun, 24 Dec 2006 11:13:31 +0000 (11:13 +0000)]
Change argument parsing to use getopt_long_only().

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