diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:13 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:13 +0000 |
commit | 0aad26dd768e9a9aa38f0981b268f09d78f4bb61 (patch) | |
tree | 73fc4906a21ee0901507c8131d9ddcedd72bdf19 /include | |
parent | 82dcf8a39876553f6b7f5e0b4119e409b3f566aa (diff) |
Store UID for services pseudoclients inside BotInfo. This will be used 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
Diffstat (limited to 'include')
-rw-r--r-- | include/bots.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/bots.h b/include/bots.h index 6573903be..e73b325ed 100644 --- a/include/bots.h +++ b/include/bots.h @@ -20,6 +20,7 @@ class BotInfo public: BotInfo *next, *prev; + std::string uid; /* required for UID supporting servers, as opposed to the shitty struct Uid. */ char *nick; /* Nickname of the bot */ char *user; /* Its user name */ char *host; /* Its hostname */ @@ -31,9 +32,17 @@ class BotInfo time_t lastmsg; /* Last time we said something */ /** Create a new bot. + * XXX: Note - this constructor is considered obsolete. Use the four parameter form. * @param nick The nickname to assign to the bot. */ BotInfo(const char *nick); + /** Create a new bot. + * @param nick The nickname to assign to the bot. + * @param user The ident to give the bot. + * @param host The hostname to give the bot. + * @param real The realname to give the bot. + */ + BotInfo(const char *nick, const char *user, const char *host, const char *real); /** Change the nickname set on a bot. * @param newnick The nick to change to |