summaryrefslogtreecommitdiff
path: root/include/helperfuncs.h
Commit message (Expand)AuthorAgeFilesLines
* Now two types of log macro, log() and ilog(). log() assumes an InspIRCd objec...•••TODO: Run a regexp over these, using perl, to translate them into InspIRCd::Log calls and then eliminate the macro :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4879 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-111-35/+0
* Move tons more stuff into class InspIRCd*, make signal handler functions stat...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-5/+0
* Move AllModulesReportReady into a private method of class InspIRCd•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4851 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-1/+0
* Move strlower into nspace namespace where hash<std::string> lives•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4850 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-1/+0
* Move InsertMode into ModeParser•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4849 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-1/+0
* Move FileExists, CleanFilename, DirValid, GetFullProgDir into class ServerConfig•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4848 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-4/+0
* FindNick, FindChan, ChanModes, UserList, CountInvisible, PurgeEmptyChannels, ...•••ServerConfig takes InspIRCd pointer in its constructor git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4832 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-101-16/+0
* Move tons more stuff into class InspIRCd•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4819 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-14/+1
* Tidy up loglevel enum (remove some C-ish defines)•••change ServerConfig to pass a pointer to 'this' to Validation etc functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4811 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-8/+9
* Remove do_log() prototypes•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4810 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-1/+0
* do_log -> static void InspIRCd::Log() (with vararg and std::string variants)•••The #define for this still exists, but maybe should be phased out? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4809 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-091-1/+1
* WriteWallops() -> userrec::WriteWallops() (originates from a user, so belongs...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4802 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-1/+0
* WriteCommon() and WriteCommonExcept() -> userrec::WriteCommon(), userrec::Wri...•••WriteCommon_NoFormat() and WriteCommonExcept_NoFormat() -> std::string variants git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4800 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-5/+0
* WHEEEEE!!!!!•••All of: Write(), WriteTo(), WriteFrom(), WriteServ() are now methods of userrec. Write_NoFormat(), WriteTo_NoFormat(), WriteFrom_NoFormat(), WriteServ_NoFormat() are now std::string-taking overloaded methods of the functions above All modules updated to use new syntax, my fingers hurt :( git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4798 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-8/+0
* WriteChannel* functions and ChanExceptSender* functions are now methods of ch...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4788 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-08-081-8/+0
* Change WriteChannelWithServ and it's _NoFormat to take a const char* serverna...•••Lose some more casts in m_spanningtree, unneeded because of above changes Make xline_set_creation_time() take const char* rather than char* for it's first parameter, lose more casts in spanningtree because of this Make do_whois take a const char* rather chan char* nick, lose yet more casts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4095 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-07-011-2/+2
* Replace rather craq'y loop with a couple of std::string calls•••Change GetServerDescription to take const char* rather than char* Change userrec::server from char* to const char*, this is more 'correct' as it's not safe to modify it (pointer as returned by std::string::c_str()) Change WhoWasGroup::server, see above about userrec::server git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4094 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-07-011-1/+1
* Change log() to a #define, the real symbol is now do_log(), the new macro aut...•••You must make clean and rebuild all of insp. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4081 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-06-291-1/+11
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-081-0/+10
* Add WriteOpers_NoFormat, now to remember what I wanted it for•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3824 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-041-3/+4
* All new shiny config parser, there's probably some bugs there somewhere but h...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-041-1/+1
* Start of conversion to const refs for std::strings in module api - A LOT OF S...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3654 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-111-1/+1
* Tidyup by making some thing sprintf only once rather than n times (where n is...•••String reference stuff for one function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3653 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-111-1/+1
* Another const reference conversion, and remove redundant declaration of userr...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3633 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-03-101-1/+1
* Mode-code rewrite. Might act weird, needs proper testing (that is what svn bu...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3474 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-061-0/+1
* Made extensive use of charlcat to cut down on strlcat usage•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3417 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-021-1/+1
* Added charlcat which appends a single char to a char* string (range checked)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3416 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-021-0/+2
* Fixed•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3275 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-211-1/+1
* Added second form of find() taking const char*, which is faster in the core w...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3273 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-211-0/+1
* Improved speed of Find() by passing reference to std::string instead of std::...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3272 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-211-1/+1
* Added bool IsValidChannelName(const char *) - it doesn't seem to blow things ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3182 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-02-131-1/+1
* Typo fixes #2•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3052 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-031-1/+1
* This probably wont compile atm - add support for prefixed messages•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3046 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-02-031-2/+2
* Key hiding when youre not on the channel•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2998 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-311-1/+1
* Add InsertMode function to helperfuncs.(cpp|h) for easily adding modes to the...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2897 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-01-251-0/+2
* Updated copyrights in headers etc using perl inplace edit•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-151-1/+1
* Fixes to typos and change to return by reference on GetClass•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2725 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-011-1/+1
* Class lookup adjustment•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2724 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-01-011-2/+1
* More removal of formatting where its not neccessary x("%s",str) == bad!•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2704 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-291-0/+13
* So many inclusion loops it makes your head spin - forward declaring tons of c...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2523 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-161-0/+1
* Moved more command parsing stuff to CommandParser•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2514 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-161-2/+0
* Optimized helperfuncs•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2482 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-151-3/+0
* More old /map code removal, removed stuff from headers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2365 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2005-12-131-4/+0
* Added notice-to-servermask•••Added ability to output 'is an oper but i dont know what type' in WHOIS git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2152 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-12-041-0/+2
* Removal of mesh stuff (lots of)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1938 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-11-251-7/+0
* sorted hashcomp etc•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1387 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-151-0/+16
* Moved a ton of functions into helperfuncs.h to speed up recompiles•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1383 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2005-05-151-0/+72