mirror of
https://github.com/anope/anope.git
synced 2026-06-30 18:06:39 +02:00
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
This commit is contained in:
@@ -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 */
|
||||
};
|
||||
|
||||
+2
-22
@@ -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
|
||||
|
||||
@@ -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$
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user