summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-30 05:50:25 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-30 05:50:25 +0000
commit7f555f08e7991c5c6d10a1f1bbeda82fb5f429f3 (patch)
treefcbeeeedde9d46a54dadb494ce4d1863161ba0fd /src/bots.cpp
parentccb8c76295f95e0c8b6b2fd23e8007fa18cf4641 (diff)
Modified BotInfo to store a pointer to a command hash table (this is so 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
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 90987f279..ff95d2a1f 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -18,6 +18,7 @@ BotInfo::BotInfo(const char *nnick)
this->uid = ts6_uid_retrieve(); // XXX is this safe? has ts6 been setup yet?
insert_bot(this); // XXX, this is ugly, but it needs to stay until hashing of bots is redone in STL.
nbots++;
+ this->cmdTable = NULL;
}
BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const char *nreal)
@@ -30,6 +31,7 @@ BotInfo::BotInfo(const char *nnick, const char *nuser, const char *nhost, const
this->uid = ts6_uid_retrieve(); // XXX is this safe? has ts6 been setup yet?
insert_bot(this); // XXX, this is ugly, but it needs to stay until hashing of bots is redone in STL.
nbots++;
+ this->cmdTable = NULL;
}
BotInfo::~BotInfo()