summaryrefslogtreecommitdiff
path: root/src/mode.cpp
AgeCommit message (Collapse)Author
2006-03-12Renamed to chanrec::modesbrain
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
2006-03-12*NEEDS TESTING* changed binarymodes to use the custom_modes entriesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-10Set bitfields on servermodebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3619 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Mostly formatting cleanup, rename a 'Ptr' to a more meaningful 'chan', ↵om
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
2006-03-09UM_WALLOPS had value 3 which was a combination of UM_SERVERNOTICE and ↵brain
UM_INVISIBLE :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3591 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Modes the wrong way aroundbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3590 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Added userrec::modebits - fast way of checking if user has +swi rather than ↵brain
an icky strchr git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Grant and revoke now use iteratorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3581 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ↵brain
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
2006-03-08Got rid of all that ugly char* cast crap (todo: change docs to reflect change)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08More optimisations, memory saving, use the char* loop everywhere else seems ↵om
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
2006-03-08Avoid some ugly casts and save (well..system dependant..) about...3 bytes of ↵om
ram! :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3539 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08Speed up and deuglify the second part of CompressModes(), stop it searching ↵om
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
2006-03-07Fixed timedbans (new mode parser didnt like being passed const char* ↵brain
elements as it likes to change them inplace) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3516 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07TOPIC optimizations, fixes to mode setting with new custom_modes systembrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3512 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Fixed to work properly with new refactoringbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3510 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07Fixed issue with parameterless module modesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3506 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06select not casebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3492 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Tidyupsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3490 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Tidying of some vars here and therebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3485 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Sorted out some silly indenting left over from an if() that died a death ↵brain
years ago git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3484 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Removal of variable that no longer has any usebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3483 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Tidied up give/take methodsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3482 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Indent tidyupbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3481 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Unneccessary strcasecmpsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3480 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Comments in the right placesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3479 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06I dont think there are any more non-essential strlcpy's left in here.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3478 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Removed another strlcpy -- a lot of copying stuff that doesnt need to be ↵brain
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
2006-03-06Removed redundant strlcpybrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3476 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Removed debugbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3475 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-06Mode-code rewrite. Might act weird, needs proper testing (that is what svn ↵brain
builds are for, after all) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3474 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-04Fix for bug first noticed by zephyrus where you could send -j+ntr to a ↵brain
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
2006-03-03Fix for MODE #chan +o- nick or +o-- nick, etcbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3443 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Typosbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3439 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Added IS_SINGLE, see comment in include/inspircd.hbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3438 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Made host fields more correct 64 in length with 63 copiesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3425 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-02Made extensive use of charlcat to cut down on strlcat usagebrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3417 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-26Valgrind fixes (libstdc++ is broken! :O)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3354 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-26Valgrind fixesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3353 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-22Oh yae, Oh Yae, back in old days of yore, Ye Brain doth set the nick buffer ↵brain
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
2006-02-21Its true i cant count! :P this one i spotted in testing.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3282 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-21MAXMODES wasn't being enforcedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3279 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-07Typo (oops)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3116 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-06Allow remote bans from servers to be represented as servers in the banlistbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3113 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-06Removed some debug notices that were mistakenly in the DEFAULT loglevelbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3112 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03This probably wont compile atm - add support for prefixed messagesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3046 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-01Should always allow remote modechanges (FJOIN not effected as its not sent ↵brain
as a MODE) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3007 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-31Key hiding when youre not on the channelbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2998 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-27Problems removing +t due to wrong bit-value being used in comparisonbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2931 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-25Changed +l to drop the mode if the limit is same as current.brain
Optimized check on numeric chars git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2908 e03df62e-2008-0410-955e-edbf42e46eb7