summaryrefslogtreecommitdiff
path: root/src/modules.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix empty FMODE being sent if SendMode denies mode changesGravatar danieldg2010-01-281-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_2_stable@12324 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for config readerGravatar danieldg2009-08-121-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix module prioritization when a module asks to be after spanningtree, which ↵Gravatar danieldg2009-08-111-5/+22
| | | | | | asks to be last git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11502 e03df62e-2008-0410-955e-edbf42e46eb7
* Make rehash generate a new ServerInstance->Config objectGravatar danieldg2009-07-011-43/+7
| | | | | | | This makes it possible to cancel a pending rehash, and fixes possible threading issues with rehash and other events. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11424 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove the ServerConfig::DirValid check that breaks symlinksGravatar danieldg2009-05-251-7/+0
| | | | | | | | This was included as a security check to prevent symlink attacks, but this is no longer useful; anyone who can exploit the attack now can just modify the ircd itself. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11390 e03df62e-2008-0410-955e-edbf42e46eb7
* OnRehash changes: split to multiple hooks to clarify use and prevent ↵Gravatar danieldg2009-05-241-1/+3
| | | | | | explosion of rehashes on a /REHASH * git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11388 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove FindDescriptor wrapper for GetRef, it doesn't do anything useful and ↵Gravatar w00t2009-05-061-5/+0
| | | | | | in fact is a bit harmful in some ways as we've seen.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11364 e03df62e-2008-0410-955e-edbf42e46eb7
* rollback r11326, we're going to make vc9 the officially supported windows ↵Gravatar peavey2009-04-231-1/+1
| | | | | | build methods since the few of us doing win dev can't keep up maintaining the others. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11327 e03df62e-2008-0410-955e-edbf42e46eb7
* Heres the beef so farGravatar brain2009-04-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11326 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7
* Include explicit parameter list in ProtocolInterface::SendModeGravatar danieldg2009-03-071-2/+2
| | | | | | | Also leave the strings split into deque, there's no need to pack it into a string just to unpack it during the translate. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11181 e03df62e-2008-0410-955e-edbf42e46eb7
* Construct explicit parameter type list for MODE parametersGravatar danieldg2009-03-061-2/+2
| | | | | | | | | | | | Previously, we used TR_SPACENICKLIST on the parameters. This worked only because usually, if anything in the list parsed as a nick, then it was a nick. However, some modes like +k and +g allow free-form text, which could also resolve as a nick. Add extra parameters to allow modes to specify their TranslateType, defaulting to TR_TEXT. This fixes bug #757, found by Taros git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11180 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove redundant PriorityState, enum Priority does the exact same thing.Gravatar w00t2009-02-161-7/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11121 e03df62e-2008-0410-955e-edbf42e46eb7
* RARRR, 11111 is MEIN! :3Gravatar brain2009-02-151-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11111 e03df62e-2008-0410-955e-edbf42e46eb7
* Make glob patterns in module load work correctly. Fixes bug #724 reported by ↵Gravatar peavey2009-02-141-1/+1
| | | | | | SnoFox. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11107 e03df62e-2008-0410-955e-edbf42e46eb7
* Nuke trailing spacesGravatar peavey2009-02-141-12/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove an unused event.Gravatar w00t2009-01-231-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10989 e03df62e-2008-0410-955e-edbf42e46eb7
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Move stuff to use ASCII map where required.Gravatar w00t2008-12-071-1/+1
| | | | | | Also move this out of being a member totally, as it breaks (gah) and is already untidy.. to be revisited. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10858 e03df62e-2008-0410-955e-edbf42e46eb7
* Forward-port: Fix an uninitialised variable in ConfigReader::GetError()Gravatar w00t2008-11-021-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10790 e03df62e-2008-0410-955e-edbf42e46eb7
* Use TargetTypeFlags instead of int in a few places.Gravatar w00t2008-10-251-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10711 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug #601Gravatar brain2008-10-021-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a rather nasty race condition revealed by my reading through the ↵Gravatar brain2008-09-201-1/+1
| | | | | | | | | | comments and enhancing them. Back when i did executeable includes, i placed a 'todo' in the code which said something along the lines of: 'we cant pass a User* into the config reader any more, because when the config reader thread finishes, that user may be gone and this will crash. Consider using an UID instead so that if the user vanishes, we can detect this situation.' Of course, nobody ever did this, so i'm doing it now to ensure we dont come up against some particularly ugly race condition crashes! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10569 e03df62e-2008-0410-955e-edbf42e46eb7
* mysql's windows build is utter hell to get working the way we wanted. The ↵Gravatar brain2008-09-051-1/+1
| | | | | | packaged libs provided by mysql AB are built against statically linked libraries and for vs2003. These dont work with inspircd using dynamically linked runtime and they dont work on vs2005 or 2008! Have had to roll my own MySQL on windows which was annoying as it wouldnt compile and was missing libraries and include files, we will have to bundle our own mysql dll built for the right visual studio and right runtimes. All the headers etc fixed to build in windows. Not tested with a real db connection yet, just compiles. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10394 e03df62e-2008-0410-955e-edbf42e46eb7
* Change module versions to use a string instead of fixed digits, and use ↵Gravatar w00t2008-08-251-4/+4
| | | | | | propset ID to auto-set versions, so we don't have (essentially unused) module versions. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10291 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnSendSnotice(char &, std::string &, const std::string &) to ↵Gravatar w00t2008-08-221-2/+4
| | | | | | modify/block/notify about snotices being sent to users. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10221 e03df62e-2008-0410-955e-edbf42e46eb7
* match() is no longer a function+no header, now a static method of InspIRCd ↵Gravatar w00t2008-08-211-7/+1
| | | | | | class, blah blah blah. Also rip out the 1.2 matcher, as it was slow, and replace it with one adapted from znc, which happens to be a tiny bit faster than 1.1's (and the fastest I've seen so far that works properly) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10212 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove last vestige of libircdfoo, by changing tag into a single ↵Gravatar w00t2008-07-291-1/+1
| | | | | | identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
* Okay, and there's the working version of it. Extbans that don't work on ↵Gravatar w00t2008-07-121-0/+1
| | | | | | users have OnCheckStringExtBan. ;p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9988 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove individual read buffers inside of BufferedSocket, use the shared ↵Gravatar w00t2008-07-121-0/+1
| | | | | | netbuffer instead, like users. This means a 65kb saving per BufferedSocket. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9960 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix m_nopartmsg to work via API modification, involves a string copy that ↵Gravatar w00t2008-07-111-1/+1
| | | | | | won't last too long. Compiles cleanly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9953 e03df62e-2008-0410-955e-edbf42e46eb7
* Yet another module priority shuffler fix from Phoenix, bad phoenix bad bad\!Gravatar brain2008-06-261-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9938 e03df62e-2008-0410-955e-edbf42e46eb7
* Module priority 'shuffler' fix from Phoenix, bounds checksGravatar brain2008-06-241-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9934 e03df62e-2008-0410-955e-edbf42e46eb7
* Module priority 'shuffler' suggestion from Phoenix, needs some testing but ↵Gravatar brain2008-06-241-1/+8
| | | | | | works ok for him git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9933 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow changing of command string and parameter vector within OnPreCommand, ↵Gravatar brain2008-06-061-1/+1
| | | | | | | | | allowing for m_abbreviation and other fancy stuff. Add basic skeleton module for it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9840 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove .c_str()'s in match() calls that are no longer needed as match() ↵Gravatar brain2008-05-181-1/+1
| | | | | | natively takes std::strings git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9737 e03df62e-2008-0410-955e-edbf42e46eb7
* Conversion of command handler params from "const char* const* parameters, ↵Gravatar brain2008-05-041-6/+6
| | | | | | | | | | int pcnt" to "const std::vector<std::string>& parameters". All of core is converted, but cant test it till the modules are converted. IMPORTANT: The mode parser public calls have had to be tweaked a bit to also use the string vector. Note that this makes a LOT of our core a bit messy and paves the way to convert a lot of stuff from the mess of .c_str() calls to using std::string params directly. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9608 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge in large patchset from GreenReaper, useful fixes for freeing a ton of ↵Gravatar brain2008-04-211-3/+1
| | | | | | different things on shutdown for tidyness, and a few stack corruption fixes in the mode handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9565 e03df62e-2008-0410-955e-edbf42e46eb7
* Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, ↵Gravatar brain2008-04-181-1/+1
| | | | | | lots of thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7
* Change that allows the m_override module to not announce a key override for ↵Gravatar brain2008-04-161-1/+1
| | | | | | a user that specified the right key git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9516 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove two useless methods, chanlog is b0rked at the moment.Gravatar w00t2008-04-041-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9313 e03df62e-2008-0410-955e-edbf42e46eb7
* Change the 'is not within the modules dir' message to something less obscure ↵Gravatar brain2008-04-031-1/+1
| | | | | | that explains the problem: "Module <file> is not in the module directory that i am configured to look in (is <path> really a symlink?)" git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9290 e03df62e-2008-0410-955e-edbf42e46eb7
* FixyGravatar brain2008-03-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9225 e03df62e-2008-0410-955e-edbf42e46eb7
* Change this return type to int from void. WHY didn't this error for me.Gravatar w00t2008-03-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9224 e03df62e-2008-0410-955e-edbf42e46eb7
* Merge OnCancelAway and OnSetAway, add param awaymsg to OnSetAway (blank when ↵Gravatar w00t2008-03-301-2/+1
| | | | | | cancelling), and change return type to int so modules can block away messages by returning nonzero. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9223 e03df62e-2008-0410-955e-edbf42e46eb7
* Port bindings for gnutls now bind via ip:port, rather than on all ports for ↵Gravatar brain2008-03-241-1/+1
| | | | | | that ip, fixes feature request for roadmap. NOTE, this still needs doing for the openssl module! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9188 e03df62e-2008-0410-955e-edbf42e46eb7
* Add stuff so that modules can hook users by altering a pointer in the User ↵Gravatar brain2008-03-241-0/+1
| | | | | | class. Note that ssl modules still bind by port, but the idea of doing this change is so we can remove that logic next git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9187 e03df62e-2008-0410-955e-edbf42e46eb7
* Add WriteNumeric() to User and OnNumeric module event. Note that modules do ↵Gravatar brain2008-03-221-1/+1
| | | | | | not change the numeric text on the fly, as this involves needless allocations for numerics that arent being changed, so instead they block the original numeric and send out their own when needed. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9174 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for OnNamesListItem, discussed with w00t a few days ago. This ↵Gravatar brain2008-03-211-0/+1
| | | | | | makes NAMESX etc a LOT cleaner and safer. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9140 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix the warnings that are worth fixing, ignore the rest of gcc's nannyingGravatar brain2008-03-171-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9117 e03df62e-2008-0410-955e-edbf42e46eb7