summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-06-09A ton more clear() and empty() stuff thats been lingering on the long term ↵brain
todo for too long a term :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7264 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Change some = "" to clear() and some == "" to .empty()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Note to devs: We should be using std::string::clear() to empty a ↵brain
std::string, NOT somestr = "". somestr = "" involves a pointless memory allocation and assignment then de-allocation, whereas clear() just sets the length to 0. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7262 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Enabled minimal rebuild on all VS project files, this will reduce build ↵burlex
time on small changes, also removed the -Auto configurations as they are no longer used. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7261 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08Enable SNOMASK 'K' (remote kill), and use it in cmd_kill. This has the side ↵w00t
effect of hiding kills from a server prefix at the moment as they work differently (ugh). git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7260 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Eek, gotta make it look the same as *nix! Windows will now print the ↵burlex
process id of the new "forked" process. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7259 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08- Whoops.. forgot a return here.burlex
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7258 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08* Changed forking code, now the parent will attempt to retrieve the exit ↵burlex
code of the created process if startup fails for some reason. . Exit code 14 means the creation of the forked process under windows failed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7257 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08+ Added an *almost* unix-like fork system for windows. Insp will create a ↵burlex
secondary process now if nofork isn't specified and pipe its console output back to the originator's. If there is an error during startup, it will show too. * Fixed m_spanningtree project (cmd_rsquit was missing) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7255 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08Add Burlex to developersw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7254 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-08Make this message slightly more meaningful, as discussed in .coders a while backw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7252 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-07Add command /RSQUIT to spanningtree.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7251 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06Add back remote kill handler for server origin killsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7249 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-06Patch fixing (almost) remote kill server notices, by just passing KILL onto ↵w00t
cmd_kill and not attempting to duplicate code for it in spanningtree. Dev: Two small issues are left with this, see comments in cmd_kill.cpp. Thanks, HiroP. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7248 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Sexeger!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7241 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05InspIRCd: Now with even MORE leet.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7240 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Comments here, toobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7239 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Refactored InspIRCd::Duration(). The leetcode now lives!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7237 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Stdint being included when we dont even use it, without checking HAS_STDINT, ↵brain
thanks djGrrr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7235 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05Fix typos found by Zaba. Thanks.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7234 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-05If the whowas maps really do fail, log it as default and not debug.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7233 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04Add options:moronbanner. Yes really, thats what its called. See the example ↵brain
config. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7232 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04Fix windows issue locating some files relative to the conf dir (namely motd, ↵brain
rules, quotes), See: http://www.inspircd.org/forum/showthread.php?t=989&page=2 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7231 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04Excess flood tidyupsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7230 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-04The recvq > netbuffersize check isnt needed *at all* as we check recvq > ↵brain
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-03Make nt the default channelmode if <options:defaultmodes> is not present.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7228 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03Many changes: Implement Muisje's idea for prefix + separator on action ↵peavey
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-03Probably fix 2nd compile issue on RH7 and add some checks which *should* ↵om
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-03And a minor cleanup of the /stats z code. Nothing spectacular..om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7222 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-03Possible fix for compile issue on some distributions. Then again there was ↵om
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-02Back out the tweaks i made here, keep only the clear screen stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7218 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Change the behaviour of insp in windows to keep its window open, with some ↵brain
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-02Add console mode patches from burlex, thanksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7216 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02And make it compile.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7214 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Chdir to bin dir on starting, allows relative paths to the bin dir to always ↵brain
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-02The code to work out the path seems to work fine now on freebsd and linux, ↵brain
still to test on win git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7211 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Debug to troubleshoot why this writes the log to the current dir in bsd, not ↵brain
the bin dir where it should git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7210 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Specific windows code for getting the full path to the exebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7209 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02and a little tweak to remote MOTD too.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7208 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02same for admin, and fix some returns.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7207 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-02Fix for bug #297. /MODULES now correctly finds remote server on wildcard. ↵peavey
Marked for QA. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7206 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01re-apply ipv6 ifdef tidyup that got pulled in last revert.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7205 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01revert multiaccept for now until we can fix it for win.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7204 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01WIN: As promised when I took it out, whowas stats in /STATS z is now working ↵peavey
due to fix in r7201. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7203 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01Fix re-generation of 005 on rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01Make valgrind happy and not leak mem.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7201 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01No fucking point at all checking for CC_DENY twice. \o/.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7200 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01We can make one saving in userrec::WriteWallOps though - we are checking ↵brain
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-01This is a better fix, as it calls the mode handler giving the modules etc ↵brain
chance to allocate structs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7198 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-01Fix bug found by indigophone where +lk cant be set in defaultmodesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7197 e03df62e-2008-0410-955e-edbf42e46eb7