summaryrefslogtreecommitdiff
path: root/src/modules.cpp
AgeCommit message (Collapse)Author
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-08Forward port of fix for Add*Line to apply automaticallyspecial
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4187 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-07Mode parser WORKS! (for simple non-parameterized channel modes)brain
Tested with channel mode +s. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4126 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-28Added missing return in Server::UnpublishFeature()special
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4079 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-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-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-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-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-11Fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3669 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-11Forceuy close fixbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3668 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-09Fixed to correctly use iteratorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3583 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-08Got rid of all that ugly char* cast crap (todo: change docs to reflect change)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 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-07Fixed wtf-ery of Modules::SendTo - did i write this before WriteServ???brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3501 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-04Old stuff left behindbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3447 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-04Tidyup of m_filterbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3446 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-23Use ::AddTimer not AddTimer, or it calls this->AddTimer and loopsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3304 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-22Changed triggering time of OnBackgroundTimer to 5 secs (from 8)brain
Fixed typo in new functions git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3288 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-19Server::AddExtendedMode and Server::AddCommand will now throw exceptions ↵brain
when adding a bad mode or already existing command. If the module constructor does not handle this exception, this will abort the module's constructor, forbidding loading of modules which are unable to function (smart eh) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3246 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-07Experimental improved string handling in server linksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3127 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-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-03Typo fixes #2brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3052 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-29Moved Write() call so that it can send the NICK message properly and force ↵brain
the client to change git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2978 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-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-22Fixes to make server kicks workbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2831 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
2006-01-15Updated copyrights in headers etc using perl inplace editbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-14Added RemoveSocket as a test fix for merwins bugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2787 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-12Changed channel user lists from vector to mapbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2780 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-11Changed fd_ref_table from 65536 to more correct MAX_DESCRIPTORSbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2769 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-09Fix to naming schemebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2762 e03df62e-2008-0410-955e-edbf42e46eb7