summaryrefslogtreecommitdiff
path: root/src/mode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Removed another strlcpy -- a lot of copying stuff that doesnt need to be ↵Gravatar brain2006-03-061-4/+1
| | | | | | | | | copied if we're careful. Obviously in the past, we werent so careful and mucked up/polluted params as we dealt with them! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3477 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed redundant strlcpyGravatar brain2006-03-061-8/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3476 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed debugGravatar brain2006-03-061-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3475 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode-code rewrite. Might act weird, needs proper testing (that is what svn ↵Gravatar brain2006-03-061-284/+179
| | | | | | builds are for, after all) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3474 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for bug first noticed by zephyrus where you could send -j+ntr to a ↵Gravatar brain2006-03-041-4/+5
| | | | | | channel which has +ntrj, and see the mode change "-j+" - now strips off any trailing + or - chars git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3458 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix for MODE #chan +o- nick or +o-- nick, etcGravatar brain2006-03-031-13/+16
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3443 e03df62e-2008-0410-955e-edbf42e46eb7
* TyposGravatar brain2006-03-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3439 e03df62e-2008-0410-955e-edbf42e46eb7
* Added IS_SINGLE, see comment in include/inspircd.hGravatar brain2006-03-021-3/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3438 e03df62e-2008-0410-955e-edbf42e46eb7
* Made host fields more correct 64 in length with 63 copiesGravatar brain2006-03-021-2/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3425 e03df62e-2008-0410-955e-edbf42e46eb7
* Made extensive use of charlcat to cut down on strlcat usageGravatar brain2006-03-021-34/+27
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3417 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind fixes (libstdc++ is broken! :O)Gravatar brain2006-02-261-22/+35
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3354 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind fixesGravatar brain2006-02-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3353 e03df62e-2008-0410-955e-edbf42e46eb7
* Oh yae, Oh Yae, back in old days of yore, Ye Brain doth set the nick buffer ↵Gravatar brain2006-02-221-3/+3
| | | | | | | | | | as NICKLEN+1 to ease understanding by newbs who didnt know what thou null terminator was. And yae, at a date later hence, Ye Brain then setteth ye buffer back to NICKLEN again. Alas, neither Ye Brain nor Ye trusty followers hath then setteth back the rest of the core to NICKLEN-1, and verily, chaos ensued. :p git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3286 e03df62e-2008-0410-955e-edbf42e46eb7
* Its true i cant count! :P this one i spotted in testing.Gravatar brain2006-02-211-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3282 e03df62e-2008-0410-955e-edbf42e46eb7
* MAXMODES wasn't being enforcedGravatar brain2006-02-211-0/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3279 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo (oops)Gravatar brain2006-02-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3116 e03df62e-2008-0410-955e-edbf42e46eb7
* Allow remote bans from servers to be represented as servers in the banlistGravatar brain2006-02-061-1/+8
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3113 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed some debug notices that were mistakenly in the DEFAULT loglevelGravatar brain2006-02-061-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3112 e03df62e-2008-0410-955e-edbf42e46eb7
* This probably wont compile atm - add support for prefixed messagesGravatar brain2006-02-031-0/+6
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3046 e03df62e-2008-0410-955e-edbf42e46eb7
* Should always allow remote modechanges (FJOIN not effected as its not sent ↵Gravatar brain2006-02-011-62/+82
| | | | | | as a MODE) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3007 e03df62e-2008-0410-955e-edbf42e46eb7
* Key hiding when youre not on the channelGravatar brain2006-01-311-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2998 e03df62e-2008-0410-955e-edbf42e46eb7
* Problems removing +t due to wrong bit-value being used in comparisonGravatar brain2006-01-271-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2931 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed +l to drop the mode if the limit is same as current.Gravatar brain2006-01-251-3/+4
| | | | | | | Optimized check on numeric chars git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2908 e03df62e-2008-0410-955e-edbf42e46eb7