diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bots.h | 33 | ||||
-rw-r--r-- | include/services.h | 24 | ||||
-rw-r--r-- | include/users.h | 2 |
3 files changed, 35 insertions, 24 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 */ +}; + 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 diff --git a/include/users.h b/include/users.h index b27895dfd..4ce8811af 100644 --- a/include/users.h +++ b/include/users.h @@ -4,8 +4,6 @@ * * Please read COPYING and README for further details. * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. * * $Id$ * |