summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Add console mode patches from burlex, thanksGravatar brain2007-06-021-28/+25
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7216 e03df62e-2008-0410-955e-edbf42e46eb7
* And make it compile.Gravatar brain2007-06-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7214 e03df62e-2008-0410-955e-edbf42e46eb7
* Chdir to bin dir on starting, allows relative paths to the bin dir to always ↵Gravatar brain2007-06-021-0/+2
| | | | | | 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
* Fix re-generation of 005 on rehashGravatar brain2007-06-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7202 e03df62e-2008-0410-955e-edbf42e46eb7
* Choose the correct defines so that its not built too lean to compileGravatar brain2007-05-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7142 e03df62e-2008-0410-955e-edbf42e46eb7
* Crash on restart in win32 fixed.Gravatar brain2007-05-201-2/+6
| | | | | | | | This means that the restart button in the gui, and /restart, both work now. Note, there are other bugs with the gui's restart button, the 'auto restart on crash' tries to boot the ircd! Dont use it! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7075 e03df62e-2008-0410-955e-edbf42e46eb7
* Visual studio's ability to translate tabs to four spaces as default ↵Gravatar brain2007-05-191-12/+12
| | | | | | frustrates and peplexes tabnazi cat. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7047 e03df62e-2008-0410-955e-edbf42e46eb7
* Windows support. Tested and working to compile on freebsd and linux. Next ↵Gravatar w00t2007-05-191-26/+132
| | | | | | step is to make sure it actually works in windows too. ;p. Add Burlex to contributors. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7043 e03df62e-2008-0410-955e-edbf42e46eb7
* Add a progress meter for loading of core commands, fix broken implementation ↵Gravatar brain2007-05-161-1/+1
| | | | | | for <disabled commands> with a module command, as discovered by Casey in bug #293 git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7038 e03df62e-2008-0410-955e-edbf42e46eb7
* Someone forgot the ELIST token (his nick begins with B)Gravatar brain2007-05-141-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7024 e03df62e-2008-0410-955e-edbf42e46eb7
* Move IsIdent() into helperfuncs.cpp along with IsNick/IsChannel.Gravatar w00t2007-05-131-20/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7016 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor port binding, warning not yet tested fullyGravatar brain2007-05-111-34/+23
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6982 e03df62e-2008-0410-955e-edbf42e46eb7
* When running in nofork, keep the tty open (we were closing it, which meant ↵Gravatar brain2007-04-261-3/+11
| | | | | | that while we were in -nofork we would see no logs!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6845 e03df62e-2008-0410-955e-edbf42e46eb7
* Make error reporting work properly, it seemed to loose errors.Gravatar brain2007-04-261-1/+8
| | | | | | | | | First change: Add a culling list of inspsockets waiting to be closed, so the close() is less likely to be called before the buffer is entirely empty. This seems to work well on my LAN. Second change: Add a SendError() method, rather than WriteLine("ERROR : ..."). This can be used to effect by also echoing out "Sent ERROR to %s: ..." onto the +l snomask meaning at least one end will always see the error even if the ERROR command is lost due to latency or design of the transport (e.g. ssl which may be writing during a read event etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6844 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for "hanging" when controlling terminal is not a tty (nofork check and ↵Gravatar brain2007-04-201-5/+8
| | | | | | isatty checks lumped together by mistake) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6818 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the restart stuff that bricker noticed while testing an feature requestGravatar brain2007-04-161-3/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6804 e03df62e-2008-0410-955e-edbf42e46eb7
* Whoooooooooooooooooooops. Forgot to initialize a varaible, so wether insp ↵Gravatar brain2007-04-151-1/+1
| | | | | | starts up or not is random :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6801 e03df62e-2008-0410-955e-edbf42e46eb7
* Add --version parameter to the binary bin/inspircd, i remember someone ↵Gravatar brain2007-04-151-3/+12
| | | | | | requesting this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6800 e03df62e-2008-0410-955e-edbf42e46eb7
* Report the correct MAXMODES valueGravatar brain2007-04-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6796 e03df62e-2008-0410-955e-edbf42e46eb7