5234 Commits

Author SHA1 Message Date
peavey
d0147795f8 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
2006-12-30 16:29:04 +00:00
brain
e5facb2cd0 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
2006-12-30 16:02:56 +00:00
brain
6fff3c54be 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
2006-12-30 15:11:40 +00:00
brain
fce2d243c0 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
2006-12-30 14:34:49 +00:00
peavey
81c26039d5 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
2006-12-30 13:50:40 +00:00
peavey
9707926560 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
2006-12-30 12:33:55 +00:00
peavey
13ade6fed1 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
2006-12-30 12:33:06 +00:00
brain
35c93cd6a5 Fix for w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6166 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 23:57:38 +00:00
brain
dd295f72ee Fix my whoopsies
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6165 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 23:38:48 +00:00
brain
500a6b24b2 This doesnt need to be static
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6164 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 23:35:35 +00:00
brain
5e9a6b9186 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
2006-12-29 23:34:47 +00:00
brain
b848ca1433 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
2006-12-29 21:27:39 +00:00
brain
d0fe371f7a 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
2006-12-29 21:21:25 +00:00
peavey
3f477dd32b Oops slippy fingers.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6160 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 15:40:26 +00:00
peavey
8b461d492d Less debug.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6159 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 15:38:41 +00:00
peavey
117bfa37de Fix for rehash/load/unload.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6158 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 15:38:04 +00:00
brain
ba2d121950 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
2006-12-29 11:01:05 +00:00
peavey
80af129f52 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
2006-12-29 05:13:21 +00:00
peavey
67f77f29ed 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
2006-12-29 05:03:55 +00:00
special
8a864d68bd Should fix bug #183 (rconnect issues), thanks Bricker
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6154 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 03:47:02 +00:00
peavey
c722453bce Oops. Forgot table ircd_log_hosts.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6153 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-29 02:05:45 +00:00
peavey
6d79ddd5da 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
2006-12-29 01:46:13 +00:00
peavey
bca5d9a802 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
2006-12-29 01:44:14 +00:00
peavey
4700c1df2d 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
2006-12-29 00:05:19 +00:00
peavey
59bd18f2a0 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
2006-12-28 22:42:38 +00:00
peavey
5dce8782eb Copyright header added.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6148 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 22:19:04 +00:00
peavey
2493f40845 Just a comment.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6147 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 21:51:41 +00:00
peavey
9e61f11a14 Schema for sqloper for PostGre.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6146 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 21:51:14 +00:00
peavey
103832d9c1 Schema for PostGre.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6145 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 21:44:46 +00:00
peavey
486ac00566 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
2006-12-28 20:29:27 +00:00
peavey
125f9c37da microly minorly typo.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6142 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 18:27:27 +00:00
peavey
48440912e1 Add m_lockserv to example conf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6140 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 18:04:48 +00:00
brain
a06b94acc1 Fix for empty 005 lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6139 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 17:25:07 +00:00
brain
f6573f487a 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
2006-12-28 17:11:53 +00:00
brain
67878d628c 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
2006-12-28 16:55:50 +00:00
peavey
ead232e19a 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
2006-12-28 15:26:29 +00:00
peavey
1f0cdbc6b9 Add m_dnsbl to example conf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6135 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 14:27:55 +00:00
peavey
774b4a74db Tidyup and is now a vendor module.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6134 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 14:22:05 +00:00
peavey
6690e9ca3a Whoops unused variable.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6133 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 13:46:53 +00:00
peavey
d51f650d86 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
2006-12-28 13:45:25 +00:00
peavey
e5100c86bb Remove an extra delete that caused a segfault.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6131 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-28 13:38:15 +00:00
peavey
124f288f8f Fix deprotectself=no not working.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6130 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 23:22:42 +00:00
brain
38b9b2a4ce 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
2006-12-26 20:40:09 +00:00
brain
a660d6bab8 Crux!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6127 e03df62e-2008-0410-955e-edbf42e46eb7
v1.1.0b7
2006-12-26 20:02:13 +00:00
brain
efc342f58c 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
2006-12-26 18:03:41 +00:00
brain
943def6a01 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
2006-12-26 17:47:56 +00:00
brain
6bc3d71946 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
2006-12-26 12:41:10 +00:00
peavey
eedbc9c88e 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
2006-12-26 12:08:59 +00:00
peavey
f9fd76eb5a Document new blockcaps options in example conf.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6122 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-26 11:48:59 +00:00
peavey
4b179481c3 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
2006-12-26 11:44:32 +00:00