summaryrefslogtreecommitdiff
path: root/src/mode.cpp
Commit message (Expand)AuthorAgeFilesLines
...
* Integrate +o into handlers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4166 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-081-2/+12
* Add cmode +o (op/deop) and in the process change a lot of char* to const char...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4165 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-081-82/+28
* Add channelmode +l•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4163 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-081-1/+4
* Add chmode +k, cut down includes in use in mode.cpp•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4162 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-081-14/+5
* Comments•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4160 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-081-0/+1
* Add support for channelmode +i•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4159 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+3
* Add cmode_n and cmode_t•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4158 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+6
* Save ourselves 3 dereferences•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4155 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-6/+8
* Remove the transposition of @ and ! stuff, doesnt work right and not a good e...•••Fix mode parser so that if a handler nukes its parameter to an empty string, but its said it MUST have a parameter (e.g. +b or +L) then thats equivalent to MODEACTION_DENY as we cant do anything without the param. The whole mode and its parameter get 'eaten' and the next character is moved to instead. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4151 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-10/+10
* Avoid throwing a std::out_of_range exception when given a ban without ! or @ ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4150 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1/+1
* Fix to check for colon (accidentally typed pos_of_dot)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4148 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1/+1
* Mask cleaning.•••nick -> nick!*@* nick!ident -> nick!ident@* host.name -> *!*@host.name ident@host.name -> *!ident@host.name transposed @ and !, swap @ and ! to form proper n!u@h ordering Hostname determined by containing a dot or a colon git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4147 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+37
* Started work on ModeParser::CleanMask()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4145 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+6
* A bit more debugging•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4143 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+1
* 'Activate' +m by putting it in the constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4142 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1/+8
* GCC defines and <hash_map> -> "hash_map.h"•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4138 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-5/+1
* Fix listmodes and modes with params•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4136 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-3/+4
* Add mode +b to active list•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4135 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+2
* fix channel mode +b•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4134 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-7/+0
* Mode +b stuff, probably wont work yet•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4133 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-96/+0
* Tidied up checking in ModeParser::AddMode() and added a humorous comment abou...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4132 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1/+16
* Initialize mode handlers and watchers to 0 in the constructor, or mucho pain ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4130 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+4
* Aaaand, correct all the obligitary typos•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4129 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-2/+4
* Added hashing stuff to hold both user and channel modes in the watcher/handle...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4127 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-5/+22
* Mode parser WORKS! (for simple non-parameterized channel modes)•••Tested with channel mode +s. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4126 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1125/+28
* Dummy framework to insert the class for channelmode +s•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4125 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-1/+5
* Header for cmode_s.cpp•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4124 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-07-071-0/+5
* delete operator tracking in debug mode (using a macro -- live with it.)•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-241-2/+2
* Typedef an ugly iterator, dont send mode string if no modes were in the outpu...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3867 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-11/+15
* Typo fixes, move some stuff about•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3862 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-5/+28
* INSERT foot INTO mouth WHERE user='Brain'•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3861 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-3/+2
* I hate HATE HATE templates.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3860 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-1/+2
* istringstream not ostringstream•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3859 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-1/+1
* Extra allowance for modes which have different number of params when being se...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3858 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-52/+35
* Start of new mode parser•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3857 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-101-2/+80
* Om's way is better and lets watchers change mode parameters for the modes the...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3856 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-091-17/+3
* Start of mode parser refactoring•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3855 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-04-091-0/+88
* Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3847 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-081-1/+1
* Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE T...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2006-04-061-169/+169
* Undo me screwing stuff up•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3797 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-021-119/+49
* Add amd64/linux to list of OS'es tested, but mainly CIA test :P•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3796 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-04-021-49/+119
* Renamed to chanrec::modes•••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 Gravatar brain2006-03-121-35/+35
* *NEEDS TESTING* changed binarymodes to use the custom_modes entries•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-121-30/+34
* Set bitfields on servermode•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3619 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-101-0/+28
* Mostly formatting cleanup, rename a 'Ptr' to a more meaningful 'chan', remove...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3604 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar om2006-03-091-61/+70
* UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and UM_INVI...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-0/+4
* Modes the wrong way around•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3590 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-3/+3
* Added userrec::modebits - fast way of checking if user has +swi rather than a...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-5/+27
* Grant and revoke now use iterators•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3581 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2006-03-091-18/+22
* Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ...•••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 Gravatar brain2006-03-081-3/+3