summaryrefslogtreecommitdiff
path: root/src/bots.cpp
AgeCommit message (Collapse)Author
2010-07-25Epic commit to replace most of the strings in Anope with a single ↵Naram Qashat
Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.
2010-07-10Properly set up our clients as on our server internally. Fixes crashes when ↵Adam
trying to akick our own clients etc
2010-06-29Missed OCDing over src/protocol/*, plus fixed a minor lack of braces and ↵Naram Qashat
fixed Config to work in an out-of-source build.
2010-06-28No need for BotInfo to have its own ChangeNick functionAdam
2010-06-27Made Anope track its own clients internally as if they were real usersAdam
2010-06-20The first of a few "CBX OCDing over code style" commits, focusing on ↵Naram Qashat
include/* and src/* but not src/core/* or src/modules/*.
2010-06-18Rewrote all of the command handling to get rid of all the nasty strtoks() ↵Adam
everywhere, and added a bot map by uid
2010-06-18Burned slist, rewrote operservs XLine codeAdam
2010-06-18Dont load mlock from the database until after Anope is connected, it doesnt ↵Adam
know all of the available modes until then
2010-06-18Rewrote the hashing system to use std::tr1::unordered_mapAdam
2010-06-18Added some global variables for the core pseudo clients, keeps us from ↵Adam
having to call findbot() everywhere
2010-06-18Rewrote all of the server handling codeAdam
2010-06-18Moved Commands stuff to its own file and changed Command::name to be ↵Adam
ci::string - Will be used after hashing system is rewritten
2010-06-18Removed all references to $, git has no svn keywordsAdam
2010-05-22Rewrote the nick colliding/releaseing/canceling system, fixes many many bugs ↵Adam-
on IRCds without svsnick and/or svshold git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2975 5417fbe8-f217-4b02-8779-1006273d7864
2010-02-25Removed OnBotPreLoad event, this is a much better way to prevent multiple of ↵Adam-
the same bots being loaded git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2796 5417fbe8-f217-4b02-8779-1006273d7864
2010-02-23Actually use the cmdTable pointer in bot structures, it now points to the ↵Adam-
bots command hash git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2794 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-11updated copyright info for 2010pimpmylinux
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2753 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-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-14Updated docs/IRCD to reflect recent changes in the ircdvar struct, and made ↵Adam-
botinfo constructors set created time not bs_bot, db loaders will change it later if needed git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2702 5417fbe8-f217-4b02-8779-1006273d7864
2009-12-14Set the created time for BotServ bots correctlyAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2700 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-11Added support for permanent channels. This supports both permanent channel ↵Adam-
modes and the ability to have BotServ bots stay in the channel to keep it open. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2638 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-09-07Added the OnBotPreLoad event to fix introducing StatServAdam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2494 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-21Fixed bug #1095, do not resend client introduction when using /botserv bot ↵adam-
add and initialized chancount in BotInfo constructor git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2460 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-08-08Actually, make use of it now. Pseudoclients are introduced automatically if ↵rburchell
synched with uplink. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2442 5417fbe8-f217-4b02-8779-1006273d7864
2009-08-04Fixed two typos in bots.cpp that could cause crashesadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2405 5417fbe8-f217-4b02-8779-1006273d7864
2009-07-16Initialize botinfo->flags on bot creation to fix some database problemsadam-
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2381 5417fbe8-f217-4b02-8779-1006273d7864
2009-06-03Fix bug #1080, changing core pseudo-client nicks in the config should ↵cyberbotx
register the change when the bots are brought back online, patch from Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2310 5417fbe8-f217-4b02-8779-1006273d7864
2009-02-18Move assign and unassign to new events, allow for halting too should modules ↵rburchell
desire that. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2107 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-03Housekeeping contact address updates.sjaz
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1914 5417fbe8-f217-4b02-8779-1006273d7864
2009-01-02Update copyrights for 2009.rburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1909 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-30Modified BotInfo to store a pointer to a command hash table (this is so ↵cyberbotx
modules like ss_main can store their own commands but still have them called by the core). Updated the current sample of ss_main to utilize BotInfo instead of Service (which might be removed) as well as accept a HELP command. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1819 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-22Replaced most uses of smalloc and scalloc with new, replaced most uses of ↵cyberbotx
free with delete. NOTE: This build is unstable due to lack of memory zeroing, this will be addresses in a future commit. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1783 5417fbe8-f217-4b02-8779-1006273d7864
2008-11-14Insane commit of doom: s/ \t/grburchell
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1681 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-02Start making some stuff compile with the modified protocol signaturesRobin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1369 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-02Replaced anope_SendPart() with direct call to SendPart() in IRCDProto class.Naram Qashat cyberbotx@cyberbotx.com
Added SendPartInternal() function to IRCDProto class, now SendPart() is a stub to handle varargs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1346 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-02Convert various to new name scheme.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1306 5417fbe8-f217-4b02-8779-1006273d7864
2008-10-01Nuke struct Uid from the core. (hooray!)Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1296 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Merge delbot() and cs_remove_bot() into BotInfo's destructor.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1281 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Store UID for services pseudoclients inside BotInfo. This will be used ↵Robin Burchell w00t@inspircd.org
instead of struct Uid in the future. Remove seperate introduction of Service, make a BotInfo for all of them. XXX: no idea at all if this will work. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1270 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Unbreak bot assigning, also call event in the unassign function, rather than ↵Robin Burchell w00t@inspircd.org
elsewherel. This will be needed for third party module devs. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1235 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Move some stuff to BotInfo methods.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1232 5417fbe8-f217-4b02-8779-1006273d7864
2008-09-30Move stuff to a bots class.Robin Burchell w00t@inspircd.org
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1224 5417fbe8-f217-4b02-8779-1006273d7864