From 0aad26dd768e9a9aa38f0981b268f09d78f4bb61 Mon Sep 17 00:00:00 2001 From: "Robin Burchell w00t@inspircd.org" Date: Tue, 30 Sep 2008 18:45:13 +0000 Subject: 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 --- include/bots.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/bots.h') 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 -- cgit