summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Change stats recv/send to double, so they can hold truly massive numbers of ↵Gravatar brain2006-07-191-1/+1
| | | | | | | | | transferred bytes (they would overflow after about 6 weeks on a busy net otherwise) Fix some warnings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4450 e03df62e-2008-0410-955e-edbf42e46eb7
* * Seperate out socket engines into derived classes of SocketEngine.Gravatar brain2006-07-191-1/+4
| | | | | | | | | * Add a classfactory SocketEngineFactory to create a new socketengine of the configured type * Implement configure hax to compile only the required socketengine and the base class * Eliminates ugly defines, and is more in line with C++ ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4439 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix case sensitive commands issue due to new std::string based parser, ↵Gravatar brain2006-07-161-1/+2
| | | | | | improve the craq disabled commands check that was potentially O(n) where n is the number of disabled commands (erk) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4404 e03df62e-2008-0410-955e-edbf42e46eb7
* Disable test suiteGravatar brain2006-07-161-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4399 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved this a lotGravatar brain2006-07-161-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4398 e03df62e-2008-0410-955e-edbf42e46eb7
* This should be faster, we read it like a stream now with GetToken until ↵Gravatar brain2006-07-161-20/+12
| | | | | | | | | GetToken returns "". The optimizations done by gcc means theres only one std::string constructor call per token, which is mmm yum. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4397 e03df62e-2008-0410-955e-edbf42e46eb7
* irc::tokenstream is a token parser which using std::string and std::vector ↵Gravatar brain2006-07-161-0/+60
| | | | | | | | | | | | | | | | builds a list of tokens using irc parsing rules. e.g.: :arse PRIVMSG #chan :foo bar baz becomes a[0] = ":arse", a[1] = "PRIVMSG", a[2] = "#chan", a[3] = "foo bar baz". *** SOMEONE *** needs to optimize this or at least verify its neatness (without making it total craq and unreadable). Feel free to mess with my code. Any optimizations you make, run them against the COMMENTED OUT TEST SUITE at the top of main() in src/inspircd.cpp and ensure ALL output is the same with no crashes. (note: if you comment out and build with the test suite, all inspircd will do is output test data and exit!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4396 e03df62e-2008-0410-955e-edbf42e46eb7
* Final test.Gravatar brain2006-07-121-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4375 e03df62e-2008-0410-955e-edbf42e46eb7
* TestGravatar brain2006-07-121-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4374 e03df62e-2008-0410-955e-edbf42e46eb7
* Mirroring testGravatar brain2006-07-121-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4373 e03df62e-2008-0410-955e-edbf42e46eb7
* Test commit (this should be auto synched to staffbox)Gravatar brain2006-07-121-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4372 e03df62e-2008-0410-955e-edbf42e46eb7
* Test commitGravatar brain2006-07-121-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4371 e03df62e-2008-0410-955e-edbf42e46eb7
* Added class Resolver (needs testing)Gravatar brain2006-07-121-0/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4353 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix my last broken commitGravatar brain2006-07-111-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4323 e03df62e-2008-0410-955e-edbf42e46eb7
* Move openSockfd[] into ServerConfigGravatar brain2006-07-111-16/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4322 e03df62e-2008-0410-955e-edbf42e46eb7
* relocate the Move* methods to private: where they belong, rename ↵Gravatar brain2006-07-011-4/+4
| | | | | | erase_factory and erase_module to be more appropriate EraseFactory and EraseModule methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4098 e03df62e-2008-0410-955e-edbf42e46eb7
* Make WritePID a public function of class InspIRCdGravatar brain2006-07-011-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4097 e03df62e-2008-0410-955e-edbf42e46eb7
* Move SetSignals(), Start() and DaemonSeed() into private methods of class ↵Gravatar brain2006-07-011-6/+6
| | | | | | InspIRCd, move MakeLowerMap() into private: section git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4096 e03df62e-2008-0410-955e-edbf42e46eb7
* Forward port of CullList and my bragging rightsGravatar special2006-06-291-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4087 e03df62e-2008-0410-955e-edbf42e46eb7
* You don't need to cast a char* to a char* to put it through a const char*...Gravatar om2006-06-291-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4083 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove hardcoded filename prefix to log message, with the new macro these ↵Gravatar om2006-06-291-2/+2
| | | | | | | | are un-needed. Remove un-needed cast, ffs guys, templates stop you needing to cast the stuff inside them... So why do you do it anyway? :< git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4082 e03df62e-2008-0410-955e-edbf42e46eb7
* Return false was missingGravatar brain2006-05-031-14/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3928 e03df62e-2008-0410-955e-edbf42e46eb7
* New header at the top of this file clarifying gplv2 only (we hadnt made it ↵Gravatar brain2006-05-021-3/+14
| | | | | | clear in this package before) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3926 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for lib dirsGravatar brain2006-04-201-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3889 e03df62e-2008-0410-955e-edbf42e46eb7
* Execinfo stuffGravatar brain2006-04-201-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3886 e03df62e-2008-0410-955e-edbf42e46eb7
* Shuffle some more includes around, const reference a few functions in inspircd.*Gravatar om2006-04-091-23/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3854 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-8/+92
| | | | | | going into inspircd.*, doesn't look like I've broken anything... :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7
* - first steps towards a working IPv6 port. I'll work more on this tomorrow. :-PGravatar nenolod2006-04-081-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3845 e03df62e-2008-0410-955e-edbf42e46eb7
* Slight optimisation to config reader, looks nicer even if it's not faster.Gravatar om2006-04-071-4/+11
| | | | | | | | | | | Make ./inspircd script use -nolog (it already used -debug, which didn't exist until now!?) Add commandline options -nolog and -debug, -debug forces all log messages to be output regardless of level. -nolog stops the logfile being written, so you can run with -debug without filling up your disk. make clean && make install, apparently some of the core doesn't depend on inspircd_io.h in the makefiles..so it'll probably segfault if you don't. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3841 e03df62e-2008-0410-955e-edbf42e46eb7
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵Gravatar w00t2006-04-061-221/+221
| | | | | | THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7
* trivial: Made a slight error on that last commit, missed a bit.Gravatar w00t2006-04-041-5/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3816 e03df62e-2008-0410-955e-edbf42e46eb7
* Test fixes for cpu eating issueGravatar brain2006-04-031-0/+14
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3809 e03df62e-2008-0410-955e-edbf42e46eb7
* Bugfix for bug #101 being as the fix was just one simple line :)Gravatar brain2006-03-251-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3751 e03df62e-2008-0410-955e-edbf42e46eb7
* Stack overflow prevention allows deeper recursionGravatar brain2006-03-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3748 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow adding of new client ports via /REHASH.Gravatar brain2006-03-181-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3731 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix to warning line 218Gravatar brain2006-03-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3723 e03df62e-2008-0410-955e-edbf42e46eb7
* Catch std::bad_alloc program wide (to catch out nazi sysadmins who restrict ↵Gravatar brain2006-03-161-4/+16
| | | | | | machines to small memory sizes, and expect things to still run fine :p) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3722 e03df62e-2008-0410-955e-edbf42e46eb7
* Obscure bug of the week: InspIRCd crashes when given more than 64 client ↵Gravatar brain2006-03-131-1/+1
| | | | | | ports to bind in the config file (yes, *REALLY*.) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3701 e03df62e-2008-0410-955e-edbf42e46eb7
* Checks and stuff :pGravatar brain2006-03-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3671 e03df62e-2008-0410-955e-edbf42e46eb7
* Re-enterant safetyGravatar brain2006-03-111-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3666 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed lots of claptrap debug in a well tested old section of codeGravatar brain2006-03-111-19/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3661 e03df62e-2008-0410-955e-edbf42e46eb7
* Delete unknown sockets on sightGravatar brain2006-03-091-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3603 e03df62e-2008-0410-955e-edbf42e46eb7
* What MUPPET made stdin, stdout and stderr FILE* pointers rather than ints?!Gravatar brain2006-03-071-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3532 e03df62e-2008-0410-955e-edbf42e46eb7
* close stdin, stderr and stdout rather than freopen to /dev/nullGravatar brain2006-03-071-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3531 e03df62e-2008-0410-955e-edbf42e46eb7
* Buffer flush time now under 0.5 secsGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3528 e03df62e-2008-0410-955e-edbf42e46eb7
* Flush user buffers more often (every 30 iterations)Gravatar brain2006-03-071-1/+12
| | | | | | | Run whowas hash maintainance every hour git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3527 e03df62e-2008-0410-955e-edbf42e46eb7
* Whowas refactor - probably wont compile yetGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
* Added a 'max depth' to stop recursive issueGravatar brain2006-03-071-0/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3507 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed return to break in mainloop for better efficiencyGravatar brain2006-03-061-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3497 e03df62e-2008-0410-955e-edbf42e46eb7