summaryrefslogtreecommitdiff
path: root/include/modules.h
AgeCommit message (Collapse)Author
2006-07-23Add an ID field to Request and a GetId() method, takes const char* and ↵om
returns it - Added new constructor to use it, all modules using ID should convert to the 'new' way of doing Requests, data is now theoretically depreceiated git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4529 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-16mass tidyup, change A LOT of stuff to const char** which was char** (such as ↵brain
parameters to commands in handlers) which makes the new lineparser work neater with no casts. This also removes tons of casts from other locations (all in all, ive added 2 casts and removed almost a hundred) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4403 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-12Test framework in m_testcommand, add interfacebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4354 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10ContentSize speedupsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4316 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Add FileReader::ContentSize and FileReader::Contentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4314 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Try to make this serve some static contentbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4308 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Inherit tons of stuff from classbase that should always have beenbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4298 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Made a load more stuff Extensible which might be of use to someonebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4293 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-10Add interface to AddModeWatcher and DelModeWatcher into class Serverbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4267 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Fix whoopsiesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4239 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Added Server::GetModuleName(), Module* to filenamebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4238 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08Port m_blockcaps to new api, remove OnExtendedMode and OnDisplayList events ↵brain
entirely git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4191 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08Remove Server::AddExtendedMode and Server::AddExtendedListMode, replace with ↵brain
Server::AddMode (makes more sense naming wise too as all modes are modes, all the same now) NOTE: Modules that implement modes WILL NO LONGER COMPILE NOW UNTIL THEY ARE PORTED TO THE NEW API git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4188 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07change std::string's to const std::string references for *Feature() funcsom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4121 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07modules.*: Put some void* back to char*, sorry if they were only like that ↵om
because of me... :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4119 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-30Tweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORSbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4091 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-21Added Server::PublishFeature(),brain
Server::UnpublishFeature(), Server::FindFeature(). See comments in modules.h for usage git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4041 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-20Class Request and class Event now take a void* in their constructor to save ↵brain
on a cast. Please note that the data type *returned* by GetData() in both cases is still char*, as C++ will not let you return a void*. This to be addressed by someone else with templates when they have the time. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4038 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-04All new shiny config parser, there's probably some bugs there somewhere but ↵om
hey...I've been up all night. make clean before you try and compile this. Really. And nobody dare complain git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-12Commented a lot of stuff that hasnt been commented since 1.0.2brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3695 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Missed some stuffbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3664 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11const std::string &brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3663 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Start of conversion to const refs for std::strings in module api - A LOT OF ↵brain
STUFF WONT WORK YET git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3654 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Convert more by-values to const references, optimise ConfigReader a bitom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3606 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08Removed deprecated Server::IsOnChannel (was a C++-ish wrapper to the C-ish ↵brain
has_channel, no longer needed) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3562 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07*TEST* Server::DumpText - Dump a *stringstream* to a user with a std::string ↵brain
prefix, splitting at 512 boundaries. Much more useful than cannibalizing a specialized function git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3535 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Changed definition of CallHandler and CallCommandHandler for the ability to ↵brain
return false on bad command. This allows us to terminate server links that send commands we dont know (e.g. admin loads module A after linking, we dont have module A, when it sends module A's command, abort) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3414 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-23Fixed to workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3302 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-23Incorporating InspTimer into safelist as a testbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3301 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-22Added m_safelist helper functions GetChannelCount and GetChannelIndexbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3287 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Removed unneeded {}'sbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3253 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Testing \exception doxygen tag that *should* workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3252 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Forgot to commit this?brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3247 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Apparently to catch descendent classes we need to catch a reference to the ↵brain
parent, not the parent itself git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3242 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Made a booboobrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3241 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-19Added exception handling for module loadingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3240 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-05Propogation of away messages across network (we dont bounce the numeric back ↵brain
for every privmsg like other ircds, we burst them and keep them synched by broadcasting AWAY) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3095 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-05Commented on new return value of OnUserPreKick for explicitly allowing kicksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3087 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-04Added "char status" parameter to OnUserPreNotice and OnUserPreMessage for ↵brain
NOTICE @#chan etc. Tidied up craq++ in modules (copy and pasting OnUserPreNotice into OnUserPreMessage?! why not just call one from the other!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3072 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03This probably wont compile atm - add support for prefixed messagesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3046 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-30Remainder of TYPE_OTHER metadatabrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2983 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-30Added support for TYPE_OTHER metadata, where void* target will be NULL, e.g. ↵brain
its not bound to a user or a nick -NOT TEST COMPILED YET- git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2981 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-29Created OnPostOper that can be gauranteed to be called *after* opering (by ↵brain
ALL modules) is done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2973 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-28Fixed uninitialized ExtMode::listbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2959 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25Documented some functions that were missing commentsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2891 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25Added PRIORITY_BEFORE and PRIORITY_AFTER (see src/modules/m_hostchange.cpp ↵brain
for how it works, function Prioritize()) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2889 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Added facility for servers to send KICK message (ew, i hate this crap)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2830 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-22Added OnChannelDelete() method (called on KICK, PART or QUIT where a channel ↵brain
is deleted for cleanup of metadata) Added m_messageflood.so (not yet finished, do not use yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2826 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-17Added support for part messages in the module API (and therefore between ↵brain
servers too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2815 e03df62e-2008-0410-955e-edbf42e46eb7