summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Add this:Gravatar brain2006-12-171-0/+9
| | | | | | | | #define CMD_LOCALONLY CMD_FAILURE so that when we say 'return cmd_failure to not allow spanningtree to propogate the message', the constant itself documents the code instead and is more readable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6035 e03df62e-2008-0410-955e-edbf42e46eb7
* Make RemoveCommand private.Gravatar peavey2006-12-171-2/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6030 e03df62e-2008-0410-955e-edbf42e46eb7
* Invented safe delete-while-itering for hash_map.Gravatar peavey2006-12-171-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6029 e03df62e-2008-0410-955e-edbf42e46eb7
* Config option added for prefixed channel NOTICEs and PRIVMSGs to turn on/off ↵Gravatar peavey2006-12-161-0/+5
| | | | | | IRCU style of adding prefix to outgoing text. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6018 e03df62e-2008-0410-955e-edbf42e46eb7
* Add stuff so that the core catches CoreException properlyGravatar brain2006-12-161-12/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6017 e03df62e-2008-0410-955e-edbf42e46eb7
* Add an optional parameter to ConfigReader::ReadValue which defines if we ↵Gravatar brain2006-12-162-11/+48
| | | | | | | | | | want linefeeds or not. Tidy up some duplicated code in configreader (error reporting) Change ModuleException to inherit from CoreException, have the configreader throw and catch its CoreException on fatal error git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6013 e03df62e-2008-0410-955e-edbf42e46eb7
* Make irc::spacify take 'const char*' instead of 'char*'Gravatar peavey2006-12-161-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6006 e03df62e-2008-0410-955e-edbf42e46eb7
* And now, just to force you to recompile the *whole* ircd.. updated headers ↵Gravatar w00t2006-12-1529-157/+114
| | | | | | on the headers. :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5998 e03df62e-2008-0410-955e-edbf42e46eb7
* Still more massive commit fun. Headers in include/ still to be done, else ↵Gravatar w00t2006-12-1517-0/+221
| | | | | | that's it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5997 e03df62e-2008-0410-955e-edbf42e46eb7
* Cleaning up irrelevent stuff in channels.cppGravatar brain2006-12-151-25/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5993 e03df62e-2008-0410-955e-edbf42e46eb7
* CPU Usage percent in stats z! yay!Gravatar brain2006-12-141-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5988 e03df62e-2008-0410-955e-edbf42e46eb7
* Refactor userrec::chans.Gravatar brain2006-12-142-29/+3
| | | | | | | | | Old way: A vector of ucrec, MAXCHANS in size by default populated by NULLS, so you have to scan the vector to find an empty slot when joining a user, parting a user etc New way: std::map<chanrec*, char> (the char holds their basic core permissions on the channel [voice, halfop, op]) This increases speed a ton, and removes some wtf-age. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5986 e03df62e-2008-0410-955e-edbf42e46eb7
* Change m_watch to use hash_map rather than map, because of the large number ↵Gravatar brain2006-12-131-0/+10
| | | | | | of entries we deal with it will usually be faster git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5979 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve the way 005 ISUPPORT is sent to users when they connect, cache it in ↵Gravatar brain2006-12-131-0/+9
| | | | | | a much more sane format which is much simpler to spool to them git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5978 e03df62e-2008-0410-955e-edbf42e46eb7
* Improve how we handle ELINEs on connect, turn O(2n) into O(n) (thats the ↵Gravatar brain2006-12-121-0/+8
| | | | | | best we can do with g/k/z/q checks for now :( ) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5968 e03df62e-2008-0410-955e-edbf42e46eb7
* New clone counting mechanism (this isnt tested yet)Gravatar brain2006-12-122-1/+12
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5967 e03df62e-2008-0410-955e-edbf42e46eb7
* irc::string assign(std::string&)Gravatar brain2006-12-111-0/+3
| | | | | | | | | | std::string assign(irc::string&) soooo: irc::string foo = assign(my_std_string); :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5956 e03df62e-2008-0410-955e-edbf42e46eb7
* Add InspIRCd::UseInterface and InspIRCd::DoneWithInterface, and also ↵Gravatar brain2006-12-102-1/+26
| | | | | | | | | | | | InspIRCd::GetInterfaceUseCount(). These can be used for one module to lock other modules in memory that it depends on, this way they can enforce an unload order so that you cant (for example) unload m_ssl_gnutls.so whilst m_spanningtree.so is using it for ssl server to server sessions (in this case, youd have to unload spanningtree first, THEN ssl_gnutls, to satisfy the dependencies and unload orders) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5924 e03df62e-2008-0410-955e-edbf42e46eb7
* Removal of AES, this is no longer required. (This also eliminates code that ↵Gravatar brain2006-12-101-209/+0
| | | | | | isnt ours, and was some public domain crap) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5915 e03df62e-2008-0410-955e-edbf42e46eb7
* Add the stuff required for the InspSocketHook interfaceGravatar brain2006-12-091-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5890 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnRawSocketConnect, we've not had it till now because we've not needed it :)Gravatar brain2006-12-091-1/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5887 e03df62e-2008-0410-955e-edbf42e46eb7
* Not yet tested -- allow iohooking of inspsocketsGravatar brain2006-12-092-0/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5886 e03df62e-2008-0410-955e-edbf42e46eb7
* Bad w00tie bad, /who isnt checking +s for channel /who!Gravatar brain2006-12-071-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5883 e03df62e-2008-0410-955e-edbf42e46eb7
* Document FindInterface, PublishInterface, UnpublishInterface, fix a bug ↵Gravatar brain2006-12-051-0/+29
| | | | | | where the interface wasnt removed when it was decremented to 0 implementing modules git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5874 e03df62e-2008-0410-955e-edbf42e46eb7
* Untested, undocumented PublishInterface, UnpublishInterface, FindInterface.Gravatar brain2006-12-052-0/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5867 e03df62e-2008-0410-955e-edbf42e46eb7
* This has changed again, i suggest you dont bother trying to keep up till im ↵Gravatar brain2006-12-051-1/+2
| | | | | | done :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5863 e03df62e-2008-0410-955e-edbf42e46eb7
* Change this a LOT.Gravatar brain2006-12-051-3/+4
| | | | | | | | | <oper blah.... hash="md5|sha256" pass="blah..."> It will now only check pass if you put the hash= in, people have been bugging for this for a while. note the m_oper_hash module will try and detect both m_sha256 and m_md5 now, and will provide /mkpasswd that can do either. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5862 e03df62e-2008-0410-955e-edbf42e46eb7
* Added InspIRCd::GetTimeDelta() - previously m_alltime was using a hack to ↵Gravatar special2006-11-291-0/+5
| | | | | | get the delta, which wasn't always reliable git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5827 e03df62e-2008-0410-955e-edbf42e46eb7
* BuildExemptList is becoming pretty ugly. grr.Gravatar brain2006-11-271-1/+9
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5819 e03df62e-2008-0410-955e-edbf42e46eb7
* Add OnBuildExemptList, which is used to build an exempt list when passing a ↵Gravatar brain2006-11-271-1/+8
| | | | | | privmsg on, but not directly processing it (m_spanningtree etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5818 e03df62e-2008-0410-955e-edbf42e46eb7
* Add exception lists to OnUserMessage and OnUserNotice, to be used for ↵Gravatar brain2006-11-271-3/+3
| | | | | | smarter routing of messages in spanningtree amongst other things git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5817 e03df62e-2008-0410-955e-edbf42e46eb7
* Update comments to reflect new APIGravatar brain2006-11-262-4/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5807 e03df62e-2008-0410-955e-edbf42e46eb7
* Add extra parameter to OnUserPreNotice and OnUserPrePrivmsg, CUList ↵Gravatar brain2006-11-262-3/+7
| | | | | | | | | &exempt_list, a list of users NOT to write to. By default it just contains the sender, you can add more. This also bumps the module api version by one. added "CUList fixme" to peaveys module just so it builds, as this will be refactored to use the new feature that was just added :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5806 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed <options:tempdir> - this hasn't been used since modules were updated ↵Gravatar special2006-11-221-4/+0
| | | | | | to not copy before load (quite awhile ago) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5785 e03df62e-2008-0410-955e-edbf42e46eb7
* fix for bug #175, change OnUserRegister to return int, and if greater than 0 ↵Gravatar peavey2006-11-211-2/+3
| | | | | | = user was quit and stop propagating to rest of loaded modules. Also bumb the module API version. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5783 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix all the _FORTIFY_SOURCE warnings except "punned pointer".Gravatar brain2006-11-191-0/+1
| | | | | | | We CANNOT fix this, as it is the recommended (and only) way to dlsym a symbol from a .so file. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5770 e03df62e-2008-0410-955e-edbf42e46eb7
* Change from dos to unix line endings (how did these get in here?)Gravatar brain2006-11-181-209/+209
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5765 e03df62e-2008-0410-955e-edbf42e46eb7
* bits_size must be protected, not privateGravatar brain2006-11-181-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5764 e03df62e-2008-0410-955e-edbf42e46eb7
* Add \code and \endcode tags for doxygenGravatar brain2006-11-181-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5763 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix a major whoopsie in that class i just added. It must be derived using ↵Gravatar brain2006-11-181-7/+46
| | | | | | virtual methods, because each TYPE of bitmask must have its own static allocation of flags. See the (long winded) comments. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5762 e03df62e-2008-0410-955e-edbf42e46eb7
* Reduce size of max number of bytes in a bitfield from a 4 or 8 byte field to ↵Gravatar brain2006-11-181-2/+2
| | | | | | | | | a 1 byte field (unsigned char). This still allows storage of 8*255 bits, which is MORE than enough (for the interested, its 2040 bits) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5761 e03df62e-2008-0410-955e-edbf42e46eb7
* Properly document irc::dynamicbitmaskGravatar brain2006-11-181-3/+70
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5760 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix this so it works, passes test case. Provide a method to query for a bit ↵Gravatar brain2006-11-171-0/+4
| | | | | | and to return the total size in bytes of the bitset git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5758 e03df62e-2008-0410-955e-edbf42e46eb7
* Add irc::dynamicbitmask class. Feel free to take a look and offer ↵Gravatar brain2006-11-171-0/+20
| | | | | | suggestions, as far as i can tell its about as efficient as im going to make it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5757 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidy up some stuffGravatar brain2006-11-151-57/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5753 e03df62e-2008-0410-955e-edbf42e46eb7
* Comments, woo and yayGravatar brain2006-11-151-4/+36
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5751 e03df62e-2008-0410-955e-edbf42e46eb7
* All of the void* cast stuff gone!!!Gravatar brain2006-11-151-5/+58
| | | | | | | Todo: comment all this stuff... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5750 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove tons of pointer craq (theres still a tinnny bit more to remove)Gravatar brain2006-11-151-1/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5749 e03df62e-2008-0410-955e-edbf42e46eb7
* We dont need this dummy value any more!Gravatar brain2006-11-141-9/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5746 e03df62e-2008-0410-955e-edbf42e46eb7
* Temporarily? remove the old gcc3.3 fixGravatar brain2006-11-141-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5745 e03df62e-2008-0410-955e-edbf42e46eb7