summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
AgeCommit message (Collapse)Author
2006-07-16Fix case sensitive commands issue due to new std::string based parser, ↵brain
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
2006-07-16Disable test suitebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4399 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16Improved this a lotbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4398 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16This should be faster, we read it like a stream now with GetToken until ↵brain
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
2006-07-16irc::tokenstream is a token parser which using std::string and std::vector ↵brain
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
2006-07-12Final test.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4375 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Testbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4374 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Mirroring testbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4373 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Test commit (this should be auto synched to staffbox)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4372 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Test commitbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4371 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Added class Resolver (needs testing)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4353 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Fix my last broken commitbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4323 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-11Move openSockfd[] into ServerConfigbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4322 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01relocate the Move* methods to private: where they belong, rename ↵brain
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
2006-07-01Make WritePID a public function of class InspIRCdbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4097 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-01Move SetSignals(), Start() and DaemonSeed() into private methods of class ↵brain
InspIRCd, move MakeLowerMap() into private: section git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4096 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29Forward port of CullList and my bragging rightsspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29You don't need to cast a char* to a char* to put it through a const char*...om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4083 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-29Remove hardcoded filename prefix to log message, with the new macro these ↵om
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
2006-05-03Return false was missingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3928 e03df62e-2008-0410-955e-edbf42e46eb7
2006-05-02New header at the top of this file clarifying gplv2 only (we hadnt made it ↵brain
clear in this package before) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3926 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-20Fixes for lib dirsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3889 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-20Execinfo stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3886 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-09Shuffle some more includes around, const reference a few functions in inspircd.*om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3854 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵om
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
2006-04-08- first steps towards a working IPv6 port. I'll work more on this tomorrow. :-Pnenolod
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3845 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-07Slight optimisation to config reader, looks nicer even if it's not faster.om
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
2006-04-06Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵w00t
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
2006-04-04trivial: Made a slight error on that last commit, missed a bit.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3816 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-03Test fixes for cpu eating issuebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3809 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-25Bugfix for bug #101 being as the fix was just one simple line :)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3751 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-22Stack overflow prevention allows deeper recursionbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3748 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-18Allow adding of new client ports via /REHASH.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3731 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-16Fix to warning line 218brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3723 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-16Catch std::bad_alloc program wide (to catch out nazi sysadmins who restrict ↵brain
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
2006-03-13Obscure bug of the week: InspIRCd crashes when given more than 64 client ↵brain
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
2006-03-11Checks and stuff :pbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3671 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Re-enterant safetybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3666 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Removed lots of claptrap debug in a well tested old section of codebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3661 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Delete unknown sockets on sightbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3603 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07What MUPPET made stdin, stdout and stderr FILE* pointers rather than ints?!brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3532 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07close stdin, stderr and stdout rather than freopen to /dev/nullbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3531 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Buffer flush time now under 0.5 secsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3528 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Flush user buffers more often (every 30 iterations)brain
Run whowas hash maintainance every hour git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3527 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Whowas refactor - probably wont compile yetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3523 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Added a 'max depth' to stop recursive issuebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3507 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Changed return to break in mainloop for better efficiencybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3497 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Fix to prevent recursive call to DoBackgroundTimerbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3441 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-27And now the final result of all this tweaking comes to light.brain
Whenever i commit the post-commit hook writes a .sh script to my dir, within the insp checkout dir, containing the current revision id - 1. Therefore, the system can stay up to date with revision id's simply with ./configure -update :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3376 e03df62e-2008-0410-955e-edbf42e46eb7