-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofileserv.h
More file actions
86 lines (78 loc) · 3.16 KB
/
profileserv.h
File metadata and controls
86 lines (78 loc) · 3.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/* ProfileServ - User Profile Service - NeoStats Addon Module
** Copyright (c) 2006-2008 Justin Hammond, Mark Hetherington, DeadNotBuried
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
** USA
**
** ProfileServ CVS Identification
** $Id: profileserv.h 26 2008-04-01 06:57:51Z Fish $
*/
#include MODULECONFIG
/* Defines */
#define PFS_TYPESIZE 3 /* Type Field Size */
#define PFS_TEXTSIZE 300 /* Text Field Size */
#define PFS_TYPENICKSIZE PFS_TYPESIZE+MAXNICK /* Type and Nick Key Field Size */
/* Variables And Structs */
Bot *pfs_bot;
struct ProfileServ {
int exclusions;
int enable;
int enableprofilechan;
char profilechan[MAXCHANLEN];
int expiredays;
} ProfileServ;
typedef struct ProfileUser {
char nick[MAXNICK];
int lastseen;
} ProfileUser;
typedef struct ProfileData {
char typenick[PFS_TYPENICKSIZE];
char typedata[PFS_TEXTSIZE];
} ProfileData;
/* ProfileServ Module Help - ProfileServ_help.c */
extern const char *pfs_help_set_exclusions[];
extern const char *pfs_help_set_enable[];
extern const char *pfs_help_set_enableprofilechan[];
extern const char *pfs_help_set_profilechanname[];
extern const char *pfs_help_set_expiredays[];
extern const char *pfs_help_profile[];
extern const char *pfs_help_realname[];
extern const char *pfs_help_birthday[];
extern const char *pfs_help_age[];
extern const char *pfs_help_gender[];
extern const char *pfs_help_maritalstatus[];
extern const char *pfs_help_location[];
extern const char *pfs_help_hobbies[];
extern const char *pfs_help_general[];
extern const char *pfs_help_del[];
/* profileserv.c */
int pfs_set_exclusions( const CmdParams *cmdparams, SET_REASON reason );
int pfs_set_enablechan (const CmdParams *cmdparams, SET_REASON reason);
int pfs_set_profilechan (const CmdParams *cmdparams, SET_REASON reason);
void profile_report( const CmdParams *cmdparams, const char *fmt, ... );
int pfs_cmd_profile (const CmdParams *cmdparams);
int pfs_cmd_realname (const CmdParams *cmdparams);
int pfs_cmd_birthday (const CmdParams *cmdparams);
int pfs_cmd_age (const CmdParams *cmdparams);
int pfs_cmd_gender (const CmdParams *cmdparams);
int pfs_cmd_maritalstatus (const CmdParams *cmdparams);
int pfs_cmd_location (const CmdParams *cmdparams);
int pfs_cmd_hobbies (const CmdParams *cmdparams);
int pfs_cmd_general (const CmdParams *cmdparams);
int pfs_cmd_del (const CmdParams *cmdparams);
void pfs_delete_profile ( const CmdParams *cmdparams, ProfileUser *pu );
int pfs_expire_profiles(void*);
int expireoldprofiles(void *data, int size);
int pfs_UmodeUser (const CmdParams *cmdparams);