summaryrefslogtreecommitdiff
path: root/src/channels.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Test tweak to clarify how channel joins workGravatar brain2006-04-211-0/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3902 e03df62e-2008-0410-955e-edbf42e46eb7
* Renamed to chanrec::modesGravatar brain2006-03-121-10/+21
| | | | | | | | 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-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3691 e03df62e-2008-0410-955e-edbf42e46eb7
* Only calculate the names list when a local user joins (this was being ↵Gravatar brain2006-03-111-7/+10
| | | | | | calculated for remote user joins, then thrown into the bit bucket) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3652 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to use iteratorsGravatar brain2006-03-091-10/+10
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3580 e03df62e-2008-0410-955e-edbf42e46eb7
* Probably wont compile yet - purge_empty_channels refactorGravatar brain2006-03-091-30/+25
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed has_channel(userrec*,chanrec*), the new preferred way of doing it is ↵Gravatar brain2006-03-081-34/+31
| | | | | | | | | 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-22/+22
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
* Actually, 64.Gravatar brain2006-03-081-1/+1
| | | | | | | (256-64-128) = 64 chars printable alphabet (roughly) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3552 e03df62e-2008-0410-955e-edbf42e46eb7
* chanrec::custom_modes only needs 96 values not 190Gravatar brain2006-03-081-1/+1
| | | | | | | (256 - 32 - 128) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3551 e03df62e-2008-0410-955e-edbf42e46eb7
* *TEST CODE* Faster custom mode set/unsetGravatar brain2006-03-071-64/+19
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3508 e03df62e-2008-0410-955e-edbf42e46eb7
* Mode-code rewrite. Might act weird, needs proper testing (that is what svn ↵Gravatar brain2006-03-061-24/+4
| | | | | | builds are for, after all) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3474 e03df62e-2008-0410-955e-edbf42e46eb7
* De-uglified chanrec::SetCustomMode -- no strlcat, no std::string, just some ↵Gravatar brain2006-03-021-14/+48
| | | | | | very clever pointer voodoo git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3415 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo found by gcc 4 warningsGravatar brain2006-02-251-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3325 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-1/+1
| | | | | | | | | | 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
* Tests for channel ghosting?Gravatar brain2006-02-211-0/+21
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3276 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved custom_mode_params to per-channelGravatar brain2006-02-151-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3223 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed a whole lot of strchr's looking for mode +o where we can do if ↵Gravatar brain2006-02-151-1/+1
| | | | | | *user->oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
* - Fixed some HORRIBLE indenting. Tabs, please.Gravatar w00t2006-02-151-344/+363
| | | | | | | | - Fixed channel keys being case insensetive. - Added a 'XXX' fixme. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3214 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed cosmetic 'need to be halfop to change modes' when kickingGravatar brain2006-02-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3138 e03df62e-2008-0410-955e-edbf42e46eb7
* Match bans against user::ip4 in add_channelGravatar brain2006-02-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3134 e03df62e-2008-0410-955e-edbf42e46eb7
* Potential fix for CS Testnet bug, thanks to Special for helping with this one.Gravatar w00t2006-02-081-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3133 e03df62e-2008-0410-955e-edbf42e46eb7
* Re-organized order of cmd_kick stuff (OnUserPreKick) to make override kicks ↵Gravatar brain2006-02-051-26/+31
| | | | | | work nicer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3085 e03df62e-2008-0410-955e-edbf42e46eb7
* Bugfix #69Gravatar brain2006-02-031-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3058 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidyup op/halfop/voice list on part/quitGravatar brain2006-02-031-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3054 e03df62e-2008-0410-955e-edbf42e46eb7
* Typo fix #1Gravatar brain2006-02-031-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3048 e03df62e-2008-0410-955e-edbf42e46eb7
* This probably wont compile atm - add support for prefixed messagesGravatar brain2006-02-031-0/+70
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3046 e03df62e-2008-0410-955e-edbf42e46eb7
* Only access-check local user kicksGravatar brain2006-02-011-39/+43
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3008 e03df62e-2008-0410-955e-edbf42e46eb7
* Made bans check both real and fake hostGravatar brain2006-01-231-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2873 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes to make server kicks workGravatar brain2006-01-221-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2831 e03df62e-2008-0410-955e-edbf42e46eb7
* Added facility for servers to send KICK message (ew, i hate this crap)Gravatar brain2006-01-221-5/+46
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2830 e03df62e-2008-0410-955e-edbf42e46eb7
* Added OnChannelDelete() method (called on KICK, PART or QUIT where a channel ↵Gravatar brain2006-01-221-0/+2
| | | | | | | | | is deleted for cleanup of metadata) Added m_messageflood.so (not yet finished, do not use yet) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2826 e03df62e-2008-0410-955e-edbf42e46eb7
* strncpy sucks ass! -- Old code was using strncpy which doesnt null terminate ↵Gravatar brain2006-01-181-3/+4
| | | | | | a string if the string fills a buffer (!!!) - our strlcpy implementation fixes this. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2817 e03df62e-2008-0410-955e-edbf42e46eb7
* Added support for part messages in the module API (and therefore between ↵Gravatar brain2006-01-171-1/+2
| | | | | | servers too) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2815 e03df62e-2008-0410-955e-edbf42e46eb7
* Updated copyrights in headers etc using perl inplace editGravatar brain2006-01-151-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2795 e03df62e-2008-0410-955e-edbf42e46eb7
* Changed channel user lists from vector to mapGravatar brain2006-01-121-9/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2780 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed broken checks to allow overridingGravatar brain2005-12-301-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2707 e03df62e-2008-0410-955e-edbf42e46eb7
* Adding hook type checking to event calls to speed them upGravatar brain2005-12-261-11/+11
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2653 e03df62e-2008-0410-955e-edbf42e46eb7
* Optimized out strcpys that copy empty strings (craq++)Gravatar brain2005-12-221-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2637 e03df62e-2008-0410-955e-edbf42e46eb7
* Improved efficiency of chanrec constructor (removed strcpys)Gravatar brain2005-12-221-7/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2633 e03df62e-2008-0410-955e-edbf42e46eb7
* Full removal of inspircd_util.hGravatar brain2005-12-151-1/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2485 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixed to use irc::string now for invite functionsGravatar brain2005-12-151-3/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2470 e03df62e-2008-0410-955e-edbf42e46eb7
* Code tidyingGravatar brain2005-12-141-4/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2440 e03df62e-2008-0410-955e-edbf42e46eb7
* Tidying of stuffGravatar brain2005-12-141-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2427 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixing move of *_channel functions to hereGravatar brain2005-12-141-1/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2423 e03df62e-2008-0410-955e-edbf42e46eb7
* Moved add_channel, del_channel, kick_channel to channels.cppGravatar brain2005-12-141-0/+355
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2422 e03df62e-2008-0410-955e-edbf42e46eb7
* Started moving of data into ServerConfig classGravatar brain2005-12-141-30/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2393 e03df62e-2008-0410-955e-edbf42e46eb7
* Removal of some trivial debug outputGravatar brain2005-12-121-2/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2355 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes for removal of serverrecGravatar brain2005-11-251-5/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1946 e03df62e-2008-0410-955e-edbf42e46eb7
* Removed references to deprecated files servers.* and connection.*Gravatar brain2005-11-251-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1941 e03df62e-2008-0410-955e-edbf42e46eb7