5099 Commits

Author SHA1 Message Date
brain
52c02f79a1 Thanks AnMaster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6188 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-31 01:32:51 +00:00
brain
ca6ffba004 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
2006-12-31 01:25:08 +00:00
brain
6e7612767e <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
2006-12-31 00:06:43 +00:00
brain
8982ea4cf5 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
2006-12-30 22:11:13 +00:00
brain
8fbec0a6c8 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
2006-12-30 22:09:18 +00:00
peavey
f82ad6d984 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
2006-12-30 21:59:22 +00:00
brain
a4743b222b Invalidate 'late' here too
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6182 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30 19:52:02 +00:00
brain
b3ab9c527a 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
2006-12-30 19:48:59 +00:00
peavey
1a21e5e585 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
2006-12-30 19:31:46 +00:00
brain
d3e3a13ae6 Cached GetFullRealHost etc.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6179 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30 19:30:53 +00:00
peavey
1102e2c921 This is a longshot, pls test AnnMaster.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6178 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30 18:07:20 +00:00
brain
1aaa30bc9b Properly document support for libhamsters
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6177 e03df62e-2008-0410-955e-edbf42e46eb7
2006-12-30 17:43:26 +00:00
brain
1f8c12807a 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
2006-12-30 17:14:52 +00:00
brain
c364a4743f 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
2006-12-30 16:38:23 +00:00
peavey
44d746fc41 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
2006-12-30 16:36:59 +00:00
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