6103 Commits

Author SHA1 Message Date
brain
75f82deb87 Excess flood tidyups
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7230 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04 17:31:31 +00:00
brain
01a726e7a3 The recvq > netbuffersize check isnt needed *at all* as we check recvq > recvqmax in userrec::AddBuffer called just above it.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7229 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04 16:44:58 +00:00
peavey
59d126a3a7 Make nt the default channelmode if <options:defaultmodes> is not present.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7228 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 19:54:56 +00:00
peavey
f8e16764b7 Update example conf for recent changes to module m_hostchange.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7227 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 16:50:48 +00:00
peavey
b54eb58a49 Many changes: Implement Muisje's idea for prefix + separator on action addnick. Switch to empty() checks on strings. Cleanup mem on module unload. Tidyup conf reading.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7226 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 16:15:43 +00:00
om
461839e0f9 Probably fix 2nd compile issue on RH7 and add some checks which *should* ensure none of this can break anything else
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7223 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 10:42:08 +00:00
om
afc03e1287 And a minor cleanup of the /stats z code. Nothing spectacular..
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7222 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 09:44:21 +00:00
om
8f9c862b01 Possible fix for compile issue on some distributions. Then again there was probably a reason we weren't doing this before...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7221 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03 09:27:38 +00:00
brain
3c19bd7b66 Back out the tweaks i made here, keep only the clear screen stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7218 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 23:44:56 +00:00
brain
6cf3fc6b36 Change the behaviour of insp in windows to keep its window open, with some status text in the title bar. It also clears the screen now on startup, see the wrapper for what a nasty amount of code it is to do such a simple thing to a windows console :(
Also, add somewhat of a hack to cut down on allocation time taken to map windows fd to a posix style fd in iocp engine.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7217 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 22:21:55 +00:00
brain
433837b847 Add console mode patches from burlex, thanks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7216 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 20:21:15 +00:00
brain
27d5e0aa06 Change configure to generate .mak files with warning level 2.
Change project files to warning level 2.


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7215 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 18:42:22 +00:00
brain
0d5473ee3a And make it compile.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7214 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 16:12:03 +00:00
brain
1badc2dd1f Chdir to bin dir on starting, allows relative paths to the bin dir to always work even when we're not started from our dir
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7213 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 16:11:34 +00:00
brain
72948525ec Add comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7212 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 15:05:49 +00:00
brain
115c025e67 The code to work out the path seems to work fine now on freebsd and linux, still to test on win
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7211 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 14:38:45 +00:00
brain
0c73dcfdb1 Debug to troubleshoot why this writes the log to the current dir in bsd, not the bin dir where it should
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7210 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 13:45:39 +00:00
brain
920f61414e Specific windows code for getting the full path to the exe
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7209 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 13:42:55 +00:00
peavey
eb334f8c69 and a little tweak to remote MOTD too.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7208 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:58:41 +00:00
peavey
73bd4d4240 same for admin, and fix some returns.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:50:27 +00:00
peavey
e6ce64246b Fix for bug #297. /MODULES now correctly finds remote server on wildcard. Marked for QA.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02 01:32:59 +00:00
peavey
858ea80c87 re-apply ipv6 ifdef tidyup that got pulled in last revert.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7205 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 23:00:18 +00:00
peavey
8d7b4f5ead revert multiaccept for now until we can fix it for win.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 22:50:17 +00:00
peavey
e430e58c2e WIN: As promised when I took it out, whowas stats in /STATS z is now working due to fix in r7201.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7203 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 22:34:16 +00:00
brain
3198b0ba77 Fix re-generation of 005 on rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 21:43:41 +00:00
peavey
77f2c9bb24 Make valgrind happy and not leak mem.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7201 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 20:31:29 +00:00
w00t
c34dd1e50f No fucking point at all checking for CC_DENY twice. \o/.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7200 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 18:53:01 +00:00
brain
993cff8f39 We can make one saving in userrec::WriteWallOps though - we are checking IS_LOCAL inside the loop, we've had a seprate local only user list for god knows how long, we know the users in it are local.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7199 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 18:49:01 +00:00
brain
b117a1ec84 This is a better fix, as it calls the mode handler giving the modules etc chance to allocate structs
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7198 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 16:55:00 +00:00
brain
46121d8880 Fix bug found by indigophone where +lk cant be set in defaultmodes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7197 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 16:42:59 +00:00
w00t
d868f0bfb0 Fix USERHOST, thanks click and HiroP
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7196 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01 14:39:15 +00:00
brain
7da093a348 Detect BRAINDEAD WINDOWS EDITORS THAT DEFAULT TO SAVING AS UTF-16! When we find out which editor did this, we'll use our retractable baton to teach it the true meaning of portable data.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7195 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 20:12:05 +00:00
brain
89738d69bb And remove soem debug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7193 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 17:43:41 +00:00
brain
7f0de14650 Fix for issue discovered by satmd where it is possible to send an empty string via privmsg or notice to a user target, against the RFC standard. Remote servers don't like this much.
Also fix: NOTICE generates OnUserNotice event, but checks against the I_OnUserMessage hook.
Also also fix (!): Missing colons in "no text to send" message.
BOTH of these also fixes have been around since like, 1.0 alpha 1, and nobody's noticed them!


git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7192 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-31 17:43:23 +00:00
brain
6d2fc8eac0 Fix bug #310 reported by Smartys, and optimize mode.cpp a bit (was using string comparison to identify an empty string, e.g. somestr == "", when we can use the much faster somestr.empty())
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7191 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-30 19:41:48 +00:00
brain
2779810ff0 Apply ipv6 #ifdef tidyup patch from djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7190 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-30 17:37:13 +00:00
w00t
c9235e50f4 Fix bug #309 reported by Smartys - QA, please test quickly. Seems okay to me.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7189 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 21:51:34 +00:00
w00t
cd6723e20f Add m_check to example configuration, thanks Potter
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7188 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 20:44:01 +00:00
w00t
21e3ab02ef Remove m_conn_lusers from the example conf, fixes bug 308, thanks Smartys
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7187 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 20:39:04 +00:00
brain
6981d78d99 Update this example conf
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7186 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 17:53:23 +00:00
brain
312bd003e1 All the other socketengines have a 1s wait on their 'poll' equivalent. GetQueuedCompletionStatus had a delay of 100ms. Upped to 1s to be more sane and more in line with the other socket engines.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7185 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:52:56 +00:00
brain
91f1703ce7 Metaphorically add a metaphorical comment to the metaphorical code. Thank god its not metadata.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7184 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:37:13 +00:00
w00t
90550c9c65 Commit multiaccept diff by myself to speed up large numbers of connections.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7183 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-29 16:35:18 +00:00
brain
c166f246f8 No flags now means all flags when in the config, so that filters defined in older configs are forwards compatible
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7182 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 23:12:01 +00:00
brain
516655d85f This works now! Still more to do though.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7181 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:51:56 +00:00
brain
82a62fd8cb Make the flags work
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7180 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:42:33 +00:00
brain
ccbf152ca4 Next bit of filter flags system
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7179 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:28:13 +00:00
brain
5183b9b820 Stuff for flags as requested by djGrr. We aren't going all-out rediculous amount of flags on this, we're sticking with the 5 or 6 easy to remember and lumping oper-immunity into the flags (see forums)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7178 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 22:19:26 +00:00
brain
30904ef950 A flags section for filters. Do not use yet.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7177 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 20:30:51 +00:00
brain
d12b1c4897 ipv6 ifdef tidyup by djGrrr, thanks :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7176 e03df62e-2008-0410-955e-edbf42e46eb7
2007-05-28 18:52:55 +00:00