diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:11 +0000 |
commit | 56084dce3308e25b5e48d6b7a3fd7eeb45f694e8 (patch) | |
tree | 403ec6c156c05154fbdafe42c8d53f3a44e4ce8d /include/bots.h | |
parent | 63f76fed71d11d767c12602adf602b5001aea5cb (diff) |
Move struct botinfo into a class in bots.h
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1223 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/bots.h')
-rw-r--r-- | include/bots.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/bots.h b/include/bots.h new file mode 100644 index 000000000..3e9b97b48 --- /dev/null +++ b/include/bots.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2008 Robin Burchell <w00t@inspircd.org> + * Copyright (C) 2008 Anope Team <info@anope.org> + * + * Please read COPYING and README for further details. + * + * + * $Id$ + * + */ + + +/* Bot info structures. Note that since there won't be many bots, + * they're not in a hash list. + * --lara + */ + +class BotInfo +{ + public: + BotInfo *next, *prev; + + char *nick; /* Nickname of the bot */ + char *user; /* Its user name */ + char *host; /* Its hostname */ + char *real; /* Its real name */ + int16 flags; /* Bot flags -- see BI_* below */ + time_t created; /* Birth date ;) */ + int16 chancount; /* Number of channels that use the bot. */ + /* Dynamic data */ + time_t lastmsg; /* Last time we said something */ +}; + |