summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
AgeCommit message (Collapse)Author
2007-07-26Forgot to add to init-listbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7579 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-26Move a ton of stuff into caller* functorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7578 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Un-static InspIRCd::Exit and use SignalHandler instead.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7572 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Rehash from console works again due to new signalhandler. TODO: Use this to ↵peavey
catch SIGTERM and exit cleanly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7571 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Shorthand macros DEFINE_HANDLER1()...DEFINE_HANDLER9() to save on defining ↵brain
functor classes that just implement Call() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7569 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Turn IsIdent into a functorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7568 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Add stuff for functors. Currently, as a test case only InspIRCd::IsNick has ↵brain
been 'functorized' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7564 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Begin move of rehash to server.cpp - broken rehash from cmdline for now.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7563 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-25Put FileLogger in it's own class. Useful when logging doing more focused loggingpeavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7561 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24Move a bundle of stuff to server.cpp from inspircd.cppw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7546 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24Merge a tiny sub in for readability, use this-> consistantly while calling ↵w00t
methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7542 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24Move more modules related stuff to modules.cppw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7541 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-24Some refactoring; move LoadModule and UnloadModule over to modules.cpp -- ↵w00t
seems like a logical home to me ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7540 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Fix crash on unload of modules with listening sockets -- some situations ↵brain
require that the socket cull list is purged *immediately*, provide facility for this. Also squish some silly error output on unloading spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7529 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-23Clean up the indenting herew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7517 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-16'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵peavey
auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03Revert a changed file I didn't want to commit ..w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7422 e03df62e-2008-0410-955e-edbf42e46eb7
2007-07-03Fix off-by-one reported by Darom in bug #339w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7421 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-23No no no, the fix to free module factories in loadmodule on error causes a ↵brain
bus error :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7403 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-20Make a comment make a bit more general sense, and indent a nested define.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7394 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-18Helps if it compilesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7389 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-18This should be safe. Someone test module loading and unloading during use ↵brain
and make sure stuff doesnt fall over. Also test some misconfigured modules, e.g. try and load m_services with m_services_account. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7388 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-18fix possible minor memleak in LoadModule. Thx IronLegend.peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7387 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-14Tidyup ifdefsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7308 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11Whoops, that was silly, the double print thing wont compile for any other OS ↵brain
but windows! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7279 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11Fix double printing of 'setting log file' and 'setting config file' paths.brain
Add comment about not using direct pointer from GetCommandLine() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7278 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11We need to pass a copy of GetCommandLine() not the actual return pointer.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7277 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11Tweak some tabular declarations to look correct on 8-width tabsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7276 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11Woo, fixed the bug, win2k doesnt like the AUTHZ_LEVEL stuff :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7275 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11Fixed commandline stuff for CreateProcess, but it looks like win2k doesnt ↵brain
like that AUTHZ const. Commented it out for now till burlex comes up with a solution git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7274 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-11- Added more debug output to windows fork in order to help debug problems ↵burlex
encountered. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7270 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09- Removed un-needed event create at windows fork.burlex
* Fixed command line arguments when using fork under windows. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7266 e03df62e-2008-0410-955e-edbf42e46eb7
2007-06-09Fixed issue preventing startup without --nofork under win32frostycoolslug
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7265 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-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-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-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-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-01Fix re-generation of 005 on rehashbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7