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/services.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/services.h')
-rw-r--r-- | include/services.h | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/include/services.h b/include/services.h index 0977f7668..5a87b3607 100644 --- a/include/services.h +++ b/include/services.h @@ -224,7 +224,6 @@ typedef struct memo_ Memo; typedef struct nickrequest_ NickRequest; typedef struct nickalias_ NickAlias; typedef struct nickcore_ NickCore; -typedef struct botinfo_ BotInfo; typedef struct chaninfo_ ChannelInfo; typedef struct badword_ BadWord; typedef struct bandata_ BanData; @@ -244,6 +243,8 @@ typedef struct csmodeutil_ CSModeUtil; typedef struct session_ Session; typedef struct uid_ Uid; +#include "bots.h" + /*************************************************************************/ /* Protocol tweaks */ @@ -530,27 +531,6 @@ struct nickcore_ { /*************************************************************************/ -/* Bot info structures. Note that since there won't be many bots, - * they're not in a hash list. - * --lara - */ - -struct botinfo_ { - 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 */ -}; - - - /* Channel info structures. Stored similarly to the nicks, except that * the second character of the channel name, not the first, is used to * determine the list. (Hashing based on the first character of the name |