aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* make sure that the pointers are set up correctly for win32Gravatar brain2007-07-271-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7600 e03df62e-2008-0410-955e-edbf42e46eb7
* Move a bunch of stuff around for tidyness, win32 functions keep creeping ↵Gravatar brain2007-07-271-107/+3
| | | | | | into #ifdef'ed chunks in non-win32 files git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7588 e03df62e-2008-0410-955e-edbf42e46eb7
* Abort if we cant chdir to our own dir (i'd say we have bigger things to ↵Gravatar brain2007-07-261-1/+5
| | | | | | worry about if this happens, but meh) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7585 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra detail to m_cloaking on failure to loadGravatar brain2007-07-261-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7580 e03df62e-2008-0410-955e-edbf42e46eb7
* Forgot to add to init-listGravatar brain2007-07-261-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7579 e03df62e-2008-0410-955e-edbf42e46eb7
* Move a ton of stuff into caller* functorsGravatar brain2007-07-261-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7578 e03df62e-2008-0410-955e-edbf42e46eb7
* Un-static InspIRCd::Exit and use SignalHandler instead.Gravatar peavey2007-07-251-15/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7572 e03df62e-2008-0410-955e-edbf42e46eb7
* Rehash from console works again due to new signalhandler. TODO: Use this to ↵Gravatar peavey2007-07-251-1/+18
| | | | | | catch SIGTERM and exit cleanly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7571 e03df62e-2008-0410-955e-edbf42e46eb7
* Shorthand macros DEFINE_HANDLER1()...DEFINE_HANDLER9() to save on defining ↵Gravatar brain2007-07-251-1/+3
| | | | | | functor classes that just implement Call() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7569 e03df62e-2008-0410-955e-edbf42e46eb7
* Turn IsIdent into a functorGravatar brain2007-07-251-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7568 e03df62e-2008-0410-955e-edbf42e46eb7
* Add stuff for functors. Currently, as a test case only InspIRCd::IsNick has ↵Gravatar brain2007-07-251-1/+4
| | | | | | been 'functorized' git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7564 e03df62e-2008-0410-955e-edbf42e46eb7
* Begin move of rehash to server.cpp - broken rehash from cmdline for now.Gravatar peavey2007-07-251-15/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7563 e03df62e-2008-0410-955e-edbf42e46eb7
* Put FileLogger in it's own class. Useful when logging doing more focused loggingGravatar peavey2007-07-251-86/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7561 e03df62e-2008-0410-955e-edbf42e46eb7
* Move a bundle of stuff to server.cpp from inspircd.cppGravatar w00t2007-07-241-65/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7546 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge a tiny sub in for readability, use this-> consistantly while calling ↵Gravatar w00t2007-07-241-11/+6
| | | | | | methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7542 e03df62e-2008-0410-955e-edbf42e46eb7
* Move more modules related stuff to modules.cppGravatar w00t2007-07-241-125/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7541 e03df62e-2008-0410-955e-edbf42e46eb7
* Some refactoring; move LoadModule and UnloadModule over to modules.cpp -- ↵Gravatar w00t2007-07-241-217/+0
| | | | | | seems like a logical home to me ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7540 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix crash on unload of modules with listening sockets -- some situations ↵Gravatar brain2007-07-231-0/+5
| | | | | | | | | 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
* Clean up the indenting hereGravatar w00t2007-07-231-10/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7517 e03df62e-2008-0410-955e-edbf42e46eb7
* OOPS! We try again, since I'm smoking craq. LF is 0x0a NOT CR.Gravatar peavey2007-07-161-1/+1307
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7456 e03df62e-2008-0410-955e-edbf42e46eb7
* 'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are ↵Gravatar peavey2007-07-161-1307/+1
| | | | | | auto skipped by svn. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
* Revert a changed file I didn't want to commit ..Gravatar w00t2007-07-031-89/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7422 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix off-by-one reported by Darom in bug #339Gravatar w00t2007-07-031-0/+89
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7421 e03df62e-2008-0410-955e-edbf42e46eb7
* No no no, the fix to free module factories in loadmodule on error causes a ↵Gravatar brain2007-06-231-8/+0
| | | | | | bus error :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7403 e03df62e-2008-0410-955e-edbf42e46eb7
* Make a comment make a bit more general sense, and indent a nested define.Gravatar w00t2007-06-201-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7394 e03df62e-2008-0410-955e-edbf42e46eb7
* Helps if it compilesGravatar brain2007-06-181-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7389 e03df62e-2008-0410-955e-edbf42e46eb7
* This should be safe. Someone test module loading and unloading during use ↵Gravatar brain2007-06-181-1/+6
| | | | | | | | | 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
* fix possible minor memleak in LoadModule. Thx IronLegend.Gravatar peavey2007-06-181-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7387 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup ifdefsGravatar brain2007-06-141-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7308 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoops, that was silly, the double print thing wont compile for any other OS ↵Gravatar brain2007-06-111-4/+0
| | | | | | but windows! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7279 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix double printing of 'setting log file' and 'setting config file' paths.Gravatar brain2007-06-111-3/+10
| | | | | | | 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
* We need to pass a copy of GetCommandLine() not the actual return pointer.Gravatar brain2007-06-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7277 e03df62e-2008-0410-955e-edbf42e46eb7
* Tweak some tabular declarations to look correct on 8-width tabsGravatar brain2007-06-111-15/+15
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7276 e03df62e-2008-0410-955e-edbf42e46eb7
* Woo, fixed the bug, win2k doesnt like the AUTHZ_LEVEL stuff :)Gravatar brain2007-06-111-23/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7275 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed commandline stuff for CreateProcess, but it looks like win2k doesnt ↵Gravatar brain2007-06-111-3/+8
| | | | | | 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
* - Added more debug output to windows fork in order to help debug problems ↵Gravatar burlex2007-06-111-0/+16
| | | | | | encountered. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7270 e03df62e-2008-0410-955e-edbf42e46eb7
* - Removed un-needed event create at windows fork.Gravatar burlex2007-06-091-6/+5
| | | | | | * 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
* Fixed issue preventing startup without --nofork under win32Gravatar frostycoolslug2007-06-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7265 e03df62e-2008-0410-955e-edbf42e46eb7
* Change some = "" to clear() and some == "" to .empty()Gravatar brain2007-06-091-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7263 e03df62e-2008-0410-955e-edbf42e46eb7
* Note to devs: We should be using std::string::clear() to empty a ↵Gravatar brain2007-06-091-1/+1
| | | | | | | | | 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
* - Enabled minimal rebuild on all VS project files, this will reduce build ↵Gravatar burlex2007-06-081-0/+1
| | | | | | 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
* - Eek, gotta make it look the same as *nix! Windows will now print the ↵Gravatar burlex2007-06-081-0/+1
| | | | | | process id of the new "forked" process. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7259 e03df62e-2008-0410-955e-edbf42e46eb7
* - Whoops.. forgot a return here.Gravatar burlex2007-06-081-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7258 e03df62e-2008-0410-955e-edbf42e46eb7
* * Changed forking code, now the parent will attempt to retrieve the exit ↵Gravatar burlex2007-06-081-11/+11
| | | | | | | | 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
* + Added an *almost* unix-like fork system for windows. Insp will create a ↵Gravatar burlex2007-06-081-19/+95
| | | | | | | | 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
* Add Burlex to developersGravatar w00t2007-06-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7254 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactored InspIRCd::Duration(). The leetcode now lives!Gravatar brain2007-06-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7237 e03df62e-2008-0410-955e-edbf42e46eb7
* Probably fix 2nd compile issue on RH7 and add some checks which *should* ↵Gravatar om2007-06-031-1/+10
| | | | | | ensure none of this can break anything else git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7223 e03df62e-2008-0410-955e-edbf42e46eb7
* Back out the tweaks i made here, keep only the clear screen stuffGravatar brain2007-06-021-9/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7218 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the behaviour of insp in windows to keep its window open, with some ↵Gravatar brain2007-06-021-21/+15
| | | | | | | | | 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