summaryrefslogtreecommitdiff
path: root/src/channels.cpp
AgeCommit message (Collapse)Author
2006-08-08WriteChannel* functions and ChanExceptSender* functions are now methods of ↵brain
chanrec. They probably should be renamed too eventually. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4788 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08add_channel -> chanrec::JoinUser()brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4787 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08Change to chanrec::PartUser. As with KickUser and ServerKickUser, returns ↵brain
the number of users left, if it returns 0, delete the chanrec git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4786 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-08kick_channel -> chanrec::KickUser(), server_kick_channel -> ↵brain
chanrec::ServerKickUser() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4782 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06Left nick out of the cidr/ip check in bans/join, would never matchbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4758 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06CIDR g/k/e lines to go with zlinesbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4744 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06Allow non-cidr ip's stillbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4742 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-06Allow CIDR channel bans to be matchedbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4741 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-04Change to using userrec::ip as a sockaddr to store port, ip and address ↵brain
family, rather than userrec::ip4 and userrec::port. This allows us to handle remote ipv6 users on an ipv4 server, and vice versa. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4694 e03df62e-2008-0410-955e-edbf42e46eb7
2006-08-01The IPV6 stuff compiles now, with compile-correct ipv6 code. I dont know if ↵brain
this works yet. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4611 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-09Alter SetModeParam to take const char* to save on casts, notice a load of ↵brain
modules that arent setting the param or the mode inside the handler git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4231 e03df62e-2008-0410-955e-edbf42e46eb7
2006-07-08Did some renaming so that the methods for modes in chanrec and userrec are ↵brain
identical. bool IsModeSet(const unsigned char c); void SetMode(const unsigned char c, bool value); Fixed m_botmode for new api git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4194 e03df62e-2008-0410-955e-edbf42e46eb7
2006-06-20Don't allow non-ulines to kick ulines from channels - return numeric 482 if ↵brain
this is attempted (you are not a chanop) with different text git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4036 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-24delete operator tracking in debug mode (using a macro -- live with it.)brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-21Forward-port of 1.0.4 tweakbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3903 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10A few more typedefs defined and put into use.om
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3866 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-10Add time.h include to inspircd.h. Random cleanups in channels.cpp, mostly ↵om
using the typedef'ed names already defined rather than having the full template names everywhere. Remove some unneeded casts too. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3865 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Remove references to inspircd_io from these, stop configure making all the ↵om
modules depend on it too. And remove some more un-needed includes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3853 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-08Split inspircd_io.* insp inspsocket.* and configreader.* with a few odd bits ↵om
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
2006-04-04All new shiny config parser, there's probably some bugs there somewhere but ↵om
hey...I've been up all night. make clean before you try and compile this. Really. And nobody dare complain git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3817 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04undo w00t's screwupom
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3812 e03df62e-2008-0410-955e-edbf42e46eb7
2006-04-04This doesn't belong in userprocess.cpp. :Pw00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3811 e03df62e-2008-0410-955e-edbf42e46eb7
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-11Only calculate the names list when a local user joins (this was being ↵brain
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
2006-03-09Fixed to use iteratorsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3580 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-09Probably wont compile yet - purge_empty_channels refactorbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3579 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-08Actually, 64.brain
(256-64-128) = 64 chars printable alphabet (roughly) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3552 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-08chanrec::custom_modes only needs 96 values not 190brain
(256 - 32 - 128) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3551 e03df62e-2008-0410-955e-edbf42e46eb7
2006-03-07*TEST CODE* Faster custom mode set/unsetbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3508 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-02De-uglified chanrec::SetCustomMode -- no strlcat, no std::string, just some ↵brain
very clever pointer voodoo git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3415 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-25Typo found by gcc 4 warningsbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3325 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-21Tests for channel ghosting?brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3276 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15Moved custom_mode_params to per-channelbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3223 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15Removed a whole lot of strchr's looking for mode +o where we can do if ↵brain
*user->oper git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3221 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-15- Fixed some HORRIBLE indenting. Tabs, please.w00t
- 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
2006-02-08Fixed cosmetic 'need to be halfop to change modes' when kickingbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3138 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-08Match bans against user::ip4 in add_channelbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3134 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-08Potential fix for CS Testnet bug, thanks to Special for helping with this one.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3133 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-05Re-organized order of cmd_kick stuff (OnUserPreKick) to make override kicks ↵brain
work nicer git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3085 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Bugfix #69brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3058 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Tidyup op/halfop/voice list on part/quitbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3054 e03df62e-2008-0410-955e-edbf42e46eb7
2006-02-03Typo fix #1brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3048 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-01Only access-check local user kicksbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3008 e03df62e-2008-0410-955e-edbf42e46eb7
2006-01-23Made bans check both real and fake hostbrain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2873 e03df62e-2008-0410-955e-edbf42e46eb7