aboutsummaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Add channelmode +lGravatar brain2006-07-081-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4163 e03df62e-2008-0410-955e-edbf42e46eb7
* Add chmode +k, cut down includes in use in mode.cppGravatar brain2006-07-081-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4162 e03df62e-2008-0410-955e-edbf42e46eb7
* ModeHandler documentedGravatar brain2006-07-081-0/+62
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4161 e03df62e-2008-0410-955e-edbf42e46eb7
* Add support for channelmode +iGravatar brain2006-07-071-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4159 e03df62e-2008-0410-955e-edbf42e46eb7
* Add channel modes +n and +tGravatar brain2006-07-072-0/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4156 e03df62e-2008-0410-955e-edbf42e46eb7
* Move BanItem into the classGravatar brain2006-07-071-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4152 e03df62e-2008-0410-955e-edbf42e46eb7
* Started work on ModeParser::CleanMask()Gravatar brain2006-07-071-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4145 e03df62e-2008-0410-955e-edbf42e46eb7
* CommentsGravatar brain2006-07-071-2/+62
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4144 e03df62e-2008-0410-955e-edbf42e46eb7
* Added cmode_m (channel mode +m)Gravatar brain2006-07-071-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4141 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode +b stuff, probably wont work yetGravatar brain2006-07-072-2/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4133 e03df62e-2008-0410-955e-edbf42e46eb7
* Add cmode_p (private)Gravatar brain2006-07-071-0/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4131 e03df62e-2008-0410-955e-edbf42e46eb7
* Aaaand, correct all the obligitary typosGravatar brain2006-07-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129 e03df62e-2008-0410-955e-edbf42e46eb7
* Added masking stuff.Gravatar brain2006-07-071-2/+9
| | | | | | | | | | | | Basically, so that we can hold user modes and channel modes in the same list, we use bitwise masking. We have a list of handlers, 256 in size 0 through 255, and to work out where a mode handler is dependent on WHAT it is, we use this simple hashing algorithm (no collisions can occur): (modeletter - 65) | mask Where mask is 128 (10000000b) if its a user mode, or 0 (00000000b, duh) if its a channel mode. Smart, and much faster than using a map of pairs. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4128 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode parser WORKS! (for simple non-parameterized channel modes)Gravatar brain2006-07-071-5/+1
| | | | | | | Tested with channel mode +s. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4126 e03df62e-2008-0410-955e-edbf42e46eb7
* Header for cmode_s.cppGravatar brain2006-07-072-0/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4124 e03df62e-2008-0410-955e-edbf42e46eb7
* change std::string's to const std::string references for *Feature() funcsGravatar om2006-07-071-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4121 e03df62e-2008-0410-955e-edbf42e46eb7
* Added InspSocket::WantWrite(), InspSocket::OnWriteReady() and private data ↵Gravatar brain2006-07-071-0/+15
| | | | | | | | | methods to make it work. See the XXX'ed section for a bit of minor craq git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4120 e03df62e-2008-0410-955e-edbf42e46eb7
* modules.*: Put some void* back to char*, sorry if they were only like that ↵Gravatar om2006-07-071-4/+4
| | | | | | because of me... :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4119 e03df62e-2008-0410-955e-edbf42e46eb7
* Change InspSocket's private members to only be protected, I couldn't find ↵Gravatar om2006-07-031-1/+1
| | | | | | | | any other way to do this before we get around to rewriting the socket engine. Commit very first, very alpha, not-very functional version of the PostgreSQL module. It compiles..and that's..err..about it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4112 e03df62e-2008-0410-955e-edbf42e46eb7
* relocate the Move* methods to private: where they belong, rename ↵Gravatar brain2006-07-011-6/+6
| | | | | | erase_factory and erase_module to be more appropriate EraseFactory and EraseModule methods git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4098 e03df62e-2008-0410-955e-edbf42e46eb7
* Make WritePID a public function of class InspIRCdGravatar brain2006-07-011-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4097 e03df62e-2008-0410-955e-edbf42e46eb7
* Move SetSignals(), Start() and DaemonSeed() into private methods of class ↵Gravatar brain2006-07-011-5/+5
| | | | | | InspIRCd, move MakeLowerMap() into private: section git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4096 e03df62e-2008-0410-955e-edbf42e46eb7
* Change WriteChannelWithServ and it's _NoFormat to take a const char* ↵Gravatar om2006-07-013-7/+7
| | | | | | | | | | servername rather than char* - although it doesn't seem to be used :< 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
* Replace rather craq'y loop with a couple of std::string callsGravatar om2006-07-012-3/+3
| | | | | | | | 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
* Tweak to IS_LOCAL macro to exclude invalid fd's that are > MAX_DESCRIPTORSGravatar brain2006-06-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4091 e03df62e-2008-0410-955e-edbf42e46eb7
* And add the include to make all the modules compile...Gravatar om2006-06-291-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4085 e03df62e-2008-0410-955e-edbf42e46eb7
* This already adds the file and line number itself, call do_log() rather than ↵Gravatar om2006-06-291-1/+1
| | | | | | log() then git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4084 e03df62e-2008-0410-955e-edbf42e46eb7
* Change log() to a #define, the real symbol is now do_log(), the new macro ↵Gravatar om2006-06-291-1/+11
| | | | | | | | auto-prefixes all log messages with the file and line number where log() was called - should be nice for debugging and telling wtf is coming from what.Currently uses a (probably very standard) g++ extension to make the macro work. Shouldn't be an issue. 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
* Convert char* to const char* in InspSocket constructor prototype. Shouldn't ↵Gravatar om2006-06-291-1/+1
| | | | | | break anything but ought to help lose some ugleh casts... >:) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4080 e03df62e-2008-0410-955e-edbf42e46eb7
* Added auto-binding, picks the first ip in the <bind> tags that isnt ↵Gravatar brain2006-06-271-0/+2
| | | | | | localhost or INADDR_ANY, and auto binds to that IP to allow us to put back the security tweak git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4064 e03df62e-2008-0410-955e-edbf42e46eb7
* Added Server::PublishFeature(),Gravatar brain2006-06-211-3/+44
| | | | | | | | | 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
* Class Request and class Event now take a void* in their constructor to save ↵Gravatar brain2006-06-201-4/+4
| | | | | | | | | | | 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
* Increase length of dhostGravatar brain2006-05-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3955 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix output corruption when host is exactly 64 chars longGravatar brain2006-05-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3944 e03df62e-2008-0410-955e-edbf42e46eb7
* Check for NULL, set pointers to NULL after deletionGravatar brain2006-04-251-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3908 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix various typos and warningsGravatar brain2006-04-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3907 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo in the macro :pGravatar brain2006-04-241-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3905 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Movement of cmd_* headers into include/commands (this is incomplete)Gravatar brain2006-04-2053-52/+52
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3896 e03df62e-2008-0410-955e-edbf42e46eb7
* Made FindMatching(Global|Local) available via users.hGravatar brain2006-04-121-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3872 e03df62e-2008-0410-955e-edbf42e46eb7
* Die windows die.Gravatar om2006-04-111-12/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3871 e03df62e-2008-0410-955e-edbf42e46eb7
* Route some more stuff through socket.h and hash_map.h. Add #define ↵Gravatar om2006-04-106-28/+16
| | | | | | protection to timer.h and remove some unneeded includes and externs from timer.cpp git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3869 e03df62e-2008-0410-955e-edbf42e46eb7
* Routing more socket includes through socket.hGravatar om2006-04-104-38/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3868 e03df62e-2008-0410-955e-edbf42e46eb7
* Typedef an ugly iterator, dont send mode string if no modes were in the ↵Gravatar brain2006-04-101-0/+2
| | | | | | output sequence git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3867 e03df62e-2008-0410-955e-edbf42e46eb7
* A few more typedefs defined and put into use.Gravatar om2006-04-102-2/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3866 e03df62e-2008-0410-955e-edbf42e46eb7
* Add time.h include to inspircd.h. Random cleanups in channels.cpp, mostly ↵Gravatar om2006-04-101-0/+1
| | | | | | using the typedef'ed names already defined rather than having the full template names everywhere. Remove some unneeded casts too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3865 e03df62e-2008-0410-955e-edbf42e46eb7
* Assorted changes here, Extend() is not templated so you can pass it any ↵Gravatar om2006-04-101-3/+11
| | | | | | pointer type and it will automatically be cast to char* for you. Also some speedups, store an iterator rather than calling find() once to check if it exists and again to access the value. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3864 e03df62e-2008-0410-955e-edbf42e46eb7
* More fixesGravatar brain2006-04-101-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3863 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra allowance for modes which have different number of params when being ↵Gravatar brain2006-04-101-3/+4
| | | | | | set to being unset (read as: jro smoking craq) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3858 e03df62e-2008-0410-955e-edbf42e46eb7
* Start of new mode parserGravatar brain2006-04-101-2/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3857 e03df62e-2008-0410-955e-edbf42e46eb7