summaryrefslogtreecommitdiff
path: root/src/mode.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* fix channel mode +bGravatar brain2006-07-071-7/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4134 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode +b stuff, probably wont work yetGravatar brain2006-07-071-96/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4133 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidied up checking in ModeParser::AddMode() and added a humorous comment ↵Gravatar brain2006-07-071-1/+16
| | | | | | about modes like '^' and '_'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4132 e03df62e-2008-0410-955e-edbf42e46eb7
* Initialize mode handlers and watchers to 0 in the constructor, or mucho pain ↵Gravatar brain2006-07-071-0/+4
| | | | | | can ensue git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4130 e03df62e-2008-0410-955e-edbf42e46eb7
* Aaaand, correct all the obligitary typosGravatar brain2006-07-071-2/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129 e03df62e-2008-0410-955e-edbf42e46eb7
* Added hashing stuff to hold both user and channel modes in the ↵Gravatar brain2006-07-071-5/+22
| | | | | | watcher/handler list git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4127 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode parser WORKS! (for simple non-parameterized channel modes)Gravatar brain2006-07-071-1125/+28
| | | | | | | Tested with channel mode +s. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4126 e03df62e-2008-0410-955e-edbf42e46eb7
* Dummy framework to insert the class for channelmode +sGravatar brain2006-07-071-1/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4125 e03df62e-2008-0410-955e-edbf42e46eb7
* Header for cmode_s.cppGravatar brain2006-07-071-0/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4124 e03df62e-2008-0410-955e-edbf42e46eb7
* delete operator tracking in debug mode (using a macro -- live with it.)Gravatar brain2006-04-241-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
* Typedef an ugly iterator, dont send mode string if no modes were in the ↵Gravatar brain2006-04-101-11/+15
| | | | | | output sequence git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3867 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo fixes, move some stuff aboutGravatar brain2006-04-101-5/+28
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3862 e03df62e-2008-0410-955e-edbf42e46eb7
* INSERT foot INTO mouth WHERE user='Brain'Gravatar brain2006-04-101-3/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3861 e03df62e-2008-0410-955e-edbf42e46eb7
* I hate HATE HATE templates.Gravatar brain2006-04-101-1/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3860 e03df62e-2008-0410-955e-edbf42e46eb7
* istringstream not ostringstreamGravatar brain2006-04-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3859 e03df62e-2008-0410-955e-edbf42e46eb7
* Extra allowance for modes which have different number of params when being ↵Gravatar brain2006-04-101-52/+35
| | | | | | 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/+80
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3857 e03df62e-2008-0410-955e-edbf42e46eb7
* Om's way is better and lets watchers change mode parameters for the modes ↵Gravatar brain2006-04-091-17/+3
| | | | | | theyre watching git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3856 e03df62e-2008-0410-955e-edbf42e46eb7
* Start of mode parser refactoringGravatar brain2006-04-091-0/+88
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3855 e03df62e-2008-0410-955e-edbf42e46eb7
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵Gravatar om2006-04-081-1/+1
| | | | | | 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
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE ↵Gravatar w00t2006-04-061-169/+169
| | | | | | 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
* Undo me screwing stuff upGravatar om2006-04-021-119/+49
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3797 e03df62e-2008-0410-955e-edbf42e46eb7
* Add amd64/linux to list of OS'es tested, but mainly CIA test :PGravatar om2006-04-021-49/+119
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3796 e03df62e-2008-0410-955e-edbf42e46eb7
* Renamed to chanrec::modesGravatar brain2006-03-121-35/+35
| | | | | | | | Renamed IsCustomModeSet to IsModeSet GetModeParameter will now return the channel limit (as a string) for a request for mode 'l' and the channel key for a request for mode 'k'. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3692 e03df62e-2008-0410-955e-edbf42e46eb7
* *NEEDS TESTING* changed binarymodes to use the custom_modes entriesGravatar brain2006-03-121-30/+34
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
* Set bitfields on servermodeGravatar brain2006-03-101-0/+28
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3619 e03df62e-2008-0410-955e-edbf42e46eb7
* Mostly formatting cleanup, rename a 'Ptr' to a more meaningful 'chan', ↵Gravatar om2006-03-091-61/+70
| | | | | | remove some pointless nested if()s checking the same thing at each other git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3604 e03df62e-2008-0410-955e-edbf42e46eb7
* UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and ↵Gravatar brain2006-03-091-0/+4
| | | | | | UM_INVISIBLE :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7
* Modes the wrong way aroundGravatar brain2006-03-091-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3590 e03df62e-2008-0410-955e-edbf42e46eb7
* Added userrec::modebits - fast way of checking if user has +swi rather than ↵Gravatar brain2006-03-091-5/+27
| | | | | | an icky strchr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
* Grant and revoke now use iteratorsGravatar brain2006-03-091-18/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3581 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ↵Gravatar brain2006-03-081-3/+3
| | | | | | | | | channel->HasUser(userrec) Yeah its the other way around to the old way, but somehow, seems less backwards to me (its also faster) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3560 e03df62e-2008-0410-955e-edbf42e46eb7
* Got rid of all that ugly char* cast crap (todo: change docs to reflect change)Gravatar brain2006-03-081-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
* More optimisations, memory saving, use the char* loop everywhere else seems ↵Gravatar om2006-03-081-20/+23
| | | | | | to love so much, use short rather than int to save a little more ram git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3541 e03df62e-2008-0410-955e-edbf42e46eb7
* Avoid some ugly casts and save (well..system dependant..) about...3 bytes of ↵Gravatar om2006-03-081-3/+4
| | | | | | ram! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3539 e03df62e-2008-0410-955e-edbf42e46eb7
* Speed up and deuglify the second part of CompressModes(), stop it searching ↵Gravatar om2006-03-081-10/+8
| | | | | | for a character three times when it only needs to once, stop it allocating an ugly static char[2] it didn't need, and stop it creating a std::string it didn't need either git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3538 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed timedbans (new mode parser didnt like being passed const char* ↵Gravatar brain2006-03-071-6/+5
| | | | | | elements as it likes to change them inplace) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3516 e03df62e-2008-0410-955e-edbf42e46eb7
* TOPIC optimizations, fixes to mode setting with new custom_modes systemGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3512 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to work properly with new refactoringGravatar brain2006-03-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3510 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed issue with parameterless module modesGravatar brain2006-03-071-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3506 e03df62e-2008-0410-955e-edbf42e46eb7
* select not caseGravatar brain2006-03-061-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3492 e03df62e-2008-0410-955e-edbf42e46eb7
* TidyupsGravatar brain2006-03-061-199/+184
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3490 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidying of some vars here and thereGravatar brain2006-03-061-12/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3485 e03df62e-2008-0410-955e-edbf42e46eb7
* Sorted out some silly indenting left over from an if() that died a death ↵Gravatar brain2006-03-061-373/+369
| | | | | | years ago git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3484 e03df62e-2008-0410-955e-edbf42e46eb7
* Removal of variable that no longer has any useGravatar brain2006-03-061-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3483 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidied up give/take methodsGravatar brain2006-03-061-176/+88
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3482 e03df62e-2008-0410-955e-edbf42e46eb7
* Indent tidyupGravatar brain2006-03-061-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3481 e03df62e-2008-0410-955e-edbf42e46eb7
* Unneccessary strcasecmpsGravatar brain2006-03-061-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3480 e03df62e-2008-0410-955e-edbf42e46eb7
* Comments in the right placesGravatar brain2006-03-061-6/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3479 e03df62e-2008-0410-955e-edbf42e46eb7
* I dont think there are any more non-essential strlcpy's left in here.Gravatar brain2006-03-061-10/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3478 e03df62e-2008-0410-955e-edbf42e46eb7