1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 18:06:39 +02:00

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
This commit is contained in:
cyberbotx
2008-11-30 05:50:25 +00:00
parent ccb8c76295
commit 7f555f08e7
5 changed files with 45 additions and 10 deletions
+2
View File
@@ -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()