summaryrefslogtreecommitdiff
path: root/src/chanserv.c
AgeCommit message (Collapse)Author
2010-06-18Renamed all of source files from .c to .cppAdam
2010-06-18Added a founder access level used to determin who is a channel founder. This ↵Adam
is completely independant of the owner levels
2010-06-18Removed process_numlist and having to mark everything as "in use" and ↵Adam
constantly checking it. Replaced with a better system.
2010-06-18Fixed cmake build, removed version_flags it is no longer need, removed old ↵Adam
unneeded defs.h and split up pseudo.h
2010-06-18Rewrote the hashing system to use std::tr1::unordered_mapAdam
2010-06-18Removed all references to $, git has no svn keywordsAdam
2010-05-17Made is possible to change levels back to founder only and made founder only ↵Adam-
levels only apply to the real founder. Changed the defaults for things such as autoowner to ACCESS_QOP git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2965 5417fbe8-f217-4b02-8779-1006273d7864
2010-05-12Fixed a potential crash caused from accessing a uninitialized pointer when ↵Adam-
enforcing mlock git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2951 5417fbe8-f217-4b02-8779-1006273d7864
2010-04-30Don't use botserv bots to hold channels open, becomes too much of a problem ↵Adam-
if people unassign/reassign bots etc git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2921 5417fbe8-f217-4b02-8779-1006273d7864
2010-03-31Added last used time to akick viewAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2846 5417fbe8-f217-4b02-8779-1006273d7864
2010-03-24Rewrote arg parsing system, changed lots of std::string*s to std::string&, ↵Adam-
made --config arg, and made Anope print out a few lines of information when starting git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2833 5417fbe8-f217-4b02-8779-1006273d7864
2010-02-04We now store a list of users using a NickCore in the NickCore, this prevents ↵Adam-
having to loop every user all the time to find them git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2780 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-31replaced the alog() command with a new type-safe and stream-based Alog()DukePyrolator
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2777 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-16Removed c_userlist and u_chanlist, replaced with std::listAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2764 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-14Burned do_sjoin and rewrote it to be sane. This changes how Anope handles ↵Adam-
new channel creations drasitcally as we now truely track it all instead of hack around it by not initially tracking user joins to new channels git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2755 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-11updated copyright info for 2010pimpmylinux
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2753 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-10Rewrote the code that handles and sends kicksAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2746 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-04Changed 'char *' fields in BotInfo to 'std::string', cleanup of bots.cpp, ↵cyberbotx
changed many other functions to use 'const std::string &' arguments as a chain reaction. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2733 5417fbe8-f217-4b02-8779-1006273d7864
2010-01-04Removed NICKMAX and CHANMAX, replaced user->nick, c->name, and ci->name with ↵Adam-
std::string git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2732 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-31Added in new plaintext databases. Note: This currently has no automatic ↵Adam-
backup feature. Big thanks to Phil on this for mass scale testing git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2722 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-23Replaced some static_casts related to modes with dynamic_cast - its a bit saferAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2715 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-16Made many of the functions in IRCDProto accept the relative object pointers ↵Adam-
instea of char* everywhere, and updated TODO git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2706 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-14Ripped out old databasesAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2699 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-13Added in a modestacker and rewrote almost all of the remaining old mode codeAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2696 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-28Massive move of all of the Config variables out of global scope to the ↵Adam-
Config class git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2674 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-19Changed the mode param handling code to be more into the general mode ↵Adam-
handling code, this cleans up and fixes some small problems with mlocking params. This also helps clarify that the ChannelInfo mode functions are for mlock only. Also, this adds the OnMLock and OnUnMLock events which can be used to control if something can be (un)mlocked git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2660 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-18Delete the correct entries from akick and badwords list when given a numlistAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2657 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-17Cleand up alot of the code in bs_badwords, made it much more C++-ishAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2654 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-11Made disabling chanserv levels *really* disable them so noone can use them ↵Adam-
(even founder), and have the ability to set it to 10000 for founders. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2641 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-11Moved alot of stuff to constructors and destructors, instead of having ↵Adam-
functions everywhere to create and destroy objects git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2639 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-08Rewrote all of the old C style flag systems into a new Flag class which ↵Adam-
everything inherits from. This breaks reading and writing flags to the old databases (and probably many other things aswell) - Don't use it git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2636 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-08Rewrote BuildStringList to use std::list instead of char**Adam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2632 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-07Made mlock_on, mlock_off, access, and akick private in ChannelInfoAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2630 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-07Rewrote all of the akick code to be much cleanerAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2613 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-06Added /chanserv access view, which shows the access creator and last time usedAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2611 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-05Dont allow sending empty mode strings in check_modesAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2610 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-05Removed trailing -'s on mode strings sent in check_modesAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2609 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-04Rewrote part of check_modes to keep it from sending empty mode stringsAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2608 5417fbe8-f217-4b02-8779-1006273d7864
2009-11-03Added OnPreNickExpire and OnPreChanExpire events, which can keep nicks and ↵Adam-
channels from expiring git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2605 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-30Removed channel passwords and added /chanserv QOP command to add additional ↵Adam-
channel founders, aswell as access level 10000 git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2599 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-30Rewrote all of the defcon code, and moved most of it to os_defcon. This ↵Adam-
fixes defcon to have the ability to use modes introduced to Anope at a later time than on startup (eg, from the IRCd), amongst other things git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2597 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-20Apply some changes based on possible "flaws" found with flawfinder.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2574 5417fbe8-f217-4b02-8779-1006273d7864
2009-10-13Complete rewrite of everything associated with modes, this breaks saving and ↵Adam-
reading mlocked modes from the databases until the new databases are implemented git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2560 5417fbe8-f217-4b02-8779-1006273d7864
2009-09-30Removed NS_IDENTIFIED/NS_RECOGNIZED/NS_ON_ACCESS from na->status, it doesnt ↵Adam-
belong there anymore and doesnt work. Replaced nick_recognized() with User::IsRecognized() which returns if youre recognized for the nick you are on, not necessarially the account youre logged in for. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2523 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-30Fixed segfault bug & check_modes() going insane over uninitialized variable.jantje_85
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2489 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-30Fix chanserv.c to compile after DEFCON changes.cyberbotx
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2488 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-30Forward port of several DEFCON fixes:jantje_85
- Fixed defcon not setting modes on newly created unregged channels and failing to force remove defcon-locked modes. - Fixed MLOCK locked mode removal getting priority over DEFCON locked mode setting. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2486 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-19Add a few items to outstanding issues in TODO, clean up a lot of warnings ↵cyberbotx
(not all, some require more widespread changes than this), and fix a few potential bugs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2457 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-21Added a new event for channels being deletedadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2388 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-10New timer infrastructure, can be used inside modules. Replaces old ↵rburchell
ENFORCE/COLLIDE/inhabit timers, too. Patch by Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2317 5417fbe8-f217-4b02-8779-1006273d7864