Data Structures | Defines | Typedefs | Enumerations

services.h File Reference

#include "sysconf.h"
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <signal.h>
#include <time.h>
#include <errno.h>
#include <grp.h>
#include <limits.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <fcntl.h>
#include <dirent.h>
#include "sockets.h"
#include <ctype.h>
#include "defs.h"
#include "slist.h"
#include "events.h"
#include "extern.h"
Include dependency graph for services.h:

Go to the source code of this file.

Data Structures

struct  ircdvars_
struct  ircdcapab_
struct  uid_
struct  Directive
struct  ModuleData_
struct  memo_
struct  MemoInfo
struct  nickrequest_
struct  nickalias_
struct  nickcore_
struct  botinfo_
struct  ChanAccess
struct  AutoKick
struct  badword_
struct  chaninfo_
struct  csmodeutil_
struct  LevelInfo
struct  server_
struct  user_
struct  user_::u_chanlist
struct  user_::u_chaninfolist
struct  cbmode_
struct  cbmodeinfo_
struct  cmmode_
struct  cumode_
struct  bandata_
struct  userdata_
struct  channel_
struct  channel_::c_userlist
struct  c_elist
struct  c_elist_entry
struct  ignore_data
struct  mailinfo_
struct  akill_
struct  sxline_
struct  hostcore_
struct  newsitem_
struct  exception_
struct  session_
struct  ircd_proto_
struct  ircd_modes_
struct  capabinfo_

Defines

#define MAX_CMD_HASH   1024
#define _GNU_SOURCE
#define h_addr   h_addr_list[0]
#define VA_COPY(DEST, SRC)   memcpy ((&DEST), (&SRC), sizeof(va_list))
#define tolower   tolower_
#define toupper   toupper_
#define encrypt   encrypt_
#define GET_USER(u)   ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (u->uid ? u->uid : u->nick) : u->nick)
#define GET_BOT(bot)   ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (find_uid(bot) ? find_uid(bot)->uid : bot) : bot)
#define MAXPARAMS   8
#define PARAM_NONE   0
#define PARAM_INT   1
#define PARAM_POSINT   2
#define PARAM_PORT   3
#define PARAM_STRING   4
#define PARAM_TIME   5
#define PARAM_STRING_ARRAY   6
#define PARAM_SET   -1
#define PARAM_DEPRECATED   -2
#define PARAM_OPTIONAL   0x01
#define PARAM_FULLONLY   0x02
#define PARAM_RELOAD   0x04
#define BOT_VERSION   10
#define CHAN_VERSION   16
#define EXCEPTION_VERSION   9
#define NEWS_VERSION   9
#define NICK_VERSION   14
#define PRE_NICK_VERSION   2
#define OPER_VERSION   13
#define HELP_VERSION   1
#define HOST_VERSION   3
#define ACCESS_FOUNDER   10000
#define ACCESS_INVALID   -10000
#define ACCESS_SUPERADMIN   10001
#define ACCESS_VOP   3
#define ACCESS_HOP   4
#define ACCESS_AOP   5
#define ACCESS_SOP   10
#define AK_USED   0x0001
#define AK_ISNICK   0x0002
#define AK_STUCK   0x0004
#define BW_ANY   0
#define BW_SINGLE   1
#define BW_START   2
#define BW_END   3
#define CI_KEEPTOPIC   0x00000001
#define CI_SECUREOPS   0x00000002
#define CI_PRIVATE   0x00000004
#define CI_TOPICLOCK   0x00000008
#define CI_RESTRICTED   0x00000010
#define CI_PEACE   0x00000020
#define CI_SECURE   0x00000040
#define CI_VERBOTEN   0x00000080
#define CI_ENCRYPTEDPW   0x00000100
#define CI_NO_EXPIRE   0x00000200
#define CI_MEMO_HARDMAX   0x00000400
#define CI_OPNOTICE   0x00000800
#define CI_SECUREFOUNDER   0x00001000
#define CI_SIGNKICK   0x00002000
#define CI_SIGNKICK_LEVEL   0x00004000
#define CI_XOP   0x00008000
#define CI_SUSPENDED   0x00010000
#define CI_INHABIT   0x80000000
#define CA_INVITE   0
#define CA_AKICK   1
#define CA_SET   2
#define CA_UNBAN   3
#define CA_AUTOOP   4
#define CA_AUTODEOP   5
#define CA_AUTOVOICE   6
#define CA_OPDEOP   7
#define CA_ACCESS_LIST   8
#define CA_CLEAR   9
#define CA_NOJOIN   10
#define CA_ACCESS_CHANGE   11
#define CA_MEMO   12
#define CA_ASSIGN   13
#define CA_BADWORDS   14
#define CA_NOKICK   15
#define CA_FANTASIA   16
#define CA_SAY   17
#define CA_GREET   18
#define CA_VOICEME   19
#define CA_VOICE   20
#define CA_GETKEY   21
#define CA_AUTOHALFOP   22
#define CA_AUTOPROTECT   23
#define CA_OPDEOPME   24
#define CA_HALFOPME   25
#define CA_HALFOP   26
#define CA_PROTECTME   27
#define CA_PROTECT   28
#define CA_KICKME   29
#define CA_KICK   30
#define CA_SIGNKICK   31
#define CA_BANME   32
#define CA_BAN   33
#define CA_TOPIC   34
#define CA_INFO   35
#define CA_SIZE   36
#define BS_DONTKICKOPS   0x00000001
#define BS_DONTKICKVOICES   0x00000002
#define BS_FANTASY   0x00000004
#define BS_SYMBIOSIS   0x00000008
#define BS_GREET   0x00000010
#define BS_NOBOT   0x00000020
#define BS_KICK_BOLDS   0x80000000
#define BS_KICK_COLORS   0x40000000
#define BS_KICK_REVERSES   0x20000000
#define BS_KICK_UNDERLINES   0x10000000
#define BS_KICK_BADWORDS   0x08000000
#define BS_KICK_CAPS   0x04000000
#define BS_KICK_FLOOD   0x02000000
#define BS_KICK_REPEAT   0x01000000
#define TTB_BOLDS   0
#define TTB_COLORS   1
#define TTB_REVERSES   2
#define TTB_UNDERLINES   3
#define TTB_BADWORDS   4
#define TTB_CAPS   5
#define TTB_FLOOD   6
#define TTB_REPEAT   7
#define TTB_SIZE   8
#define SERVER_ISME   0x0001
#define SERVER_JUPED   0x0002
#define SERVER_ISUPLINK   0x0004
#define CBM_MINUS_NO_ARG   0x0001
#define CBM_NO_MLOCK   0x0002
#define CBM_NO_USER_MLOCK   0x0004
#define CUF_PROTECT_BOTSERV   0x0001
#define ENTRYTYPE_NONE   0x00000000
#define ENTRYTYPE_CIDR4   0x00000001
#define ENTRYTYPE_NICK_WILD   0x00000004
#define ENTRYTYPE_NICK   0x00000008
#define ENTRYTYPE_USER_WILD   0x00000010
#define ENTRYTYPE_USER   0x00000020
#define ENTRYTYPE_HOST_WILD   0x00000040
#define ENTRYTYPE_HOST   0x00000080
#define NEWS_LOGON   0
#define NEWS_OPER   1
#define NEWS_RANDOM   2
#define DEFCON_NO_NEW_CHANNELS   1
#define DEFCON_NO_NEW_NICKS   2
#define DEFCON_NO_MLOCK_CHANGE   4
#define DEFCON_FORCE_CHAN_MODES   8
#define DEFCON_REDUCE_SESSION   16
#define DEFCON_NO_NEW_CLIENTS   32
#define DEFCON_OPER_ONLY   64
#define DEFCON_SILENT_OPER_ONLY   128
#define DEFCON_AKILL_NEW_CLIENTS   256
#define DEFCON_NO_NEW_MEMOS   512
#define MF_UNREAD   0x0001
#define MF_RECEIPT   0x0002
#define MF_NOTIFYS   0x0004
#define NS_VERBOTEN   0x0002
#define NS_NO_EXPIRE   0x0004
#define NS_IDENTIFIED   0x8000
#define NS_RECOGNIZED   0x4000
#define NS_ON_ACCESS   0x2000
#define NS_KILL_HELD   0x1000
#define NS_GUESTED   0x0100
#define NS_MASTER   0x0200
#define NS_TRANSGROUP   0xC000
#define NS_TEMPORARY   0xFF00
#define NS_OLD_ENCRYPTEDPW   0x0001
#define NI_KILLPROTECT   0x00000001
#define NI_SECURE   0x00000002
#define NI_MSG   0x00000004
#define NI_MEMO_HARDMAX   0x00000008
#define NI_MEMO_SIGNON   0x00000010
#define NI_MEMO_RECEIVE   0x00000020
#define NI_PRIVATE   0x00000040
#define NI_HIDE_EMAIL   0x00000080
#define NI_HIDE_MASK   0x00000100
#define NI_HIDE_QUIT   0x00000200
#define NI_KILL_QUICK   0x00000400
#define NI_KILL_IMMED   0x00000800
#define NI_SERVICES_OPER   0x00001000
#define NI_SERVICES_ADMIN   0x00002000
#define NI_ENCRYPTEDPW   0x00004000
#define NI_SERVICES_ROOT   0x00008000
#define NI_MEMO_MAIL   0x00010000
#define NI_HIDE_STATUS   0x00020000
#define NI_SUSPENDED   0x00040000
#define NI_AUTOOP   0x00080000
#define LANG_EN_US   0
#define LANG_JA_JIS   1
#define LANG_JA_EUC   2
#define LANG_JA_SJIS   3
#define LANG_ES   4
#define LANG_PT   5
#define LANG_FR   6
#define LANG_TR   7
#define LANG_IT   8
#define LANG_DE   9
#define LANG_CAT   10
#define LANG_GR   11
#define LANG_NL   12
#define LANG_RU   13
#define LANG_HUN   14
#define LANG_PL   15
#define LANG_JA_UTF8   16
#define NUM_LANGS   17
#define USED_LANGS   14
#define DEF_LANGUAGE   LANG_EN_US
#define BI_PRIVATE   0x0001
#define CUS_OP   0x0001
#define CUS_VOICE   0x0002
#define CUS_HALFOP   0x0004
#define CUS_OWNER   0x0008
#define CUS_PROTECT   0x0010
#define CUS_DEOPPED   0x0080
#define MUT_DEOP   0
#define MUT_OP   1
#define MUT_DEVOICE   2
#define MUT_VOICE   3
#define MUT_DEHALFOP   4
#define MUT_HALFOP   5
#define MUT_DEPROTECT   6
#define MUT_PROTECT   7
#define CAPAB_NOQUIT   0x00000001
#define CAPAB_TSMODE   0x00000002
#define CAPAB_UNCONNECT   0x00000004
#define CAPAB_NICKIP   0x00000008
#define CAPAB_NSJOIN   0x00000010
#define CAPAB_ZIP   0x00000020
#define CAPAB_BURST   0x00000040
#define CAPAB_TS3   0x00000080
#define CAPAB_TS5   0x00000100
#define CAPAB_DKEY   0x00000200
#define CAPAB_DOZIP   0x00000400
#define CAPAB_DODKEY   0x00000800
#define CAPAB_QS   0x00001000
#define CAPAB_SCS   0x00002000
#define CAPAB_PT4   0x00004000
#define CAPAB_UID   0x00008000
#define CAPAB_KNOCK   0x00010000
#define CAPAB_CLIENT   0x00020000
#define CAPAB_IPV6   0x00040000
#define CAPAB_SSJ5   0x00080000
#define CAPAB_SN2   0x00100000
#define CAPAB_VHOST   0x00200000
#define CAPAB_TOKEN   0x00400000
#define CAPAB_SSJ3   0x00800000
#define CAPAB_NICK2   0x01000000
#define CAPAB_UMODE2   0x02000000
#define CAPAB_VL   0x04000000
#define CAPAB_TLKEXT   0x08000000
#define CAPAB_CHANMODE   0x10000000
#define CAPAB_SJB64   0x20000000
#define CAPAB_NICKCHARS   0x40000000
#define isvalidnick(c)   ( isalnum(c) || ((c) >='\x5B' && (c) <='\x60') || ((c) >='\x7B' && (c) <='\x7D') || (c)=='-' )

Typedefs

typedef struct server_ Server
typedef struct user_ User
typedef struct channel_ Channel
typedef struct c_elist EList
typedef struct c_elist_entry Entry
typedef struct ModuleData_ ModuleData
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
typedef struct userdata_ UserData
typedef struct mailinfo_ MailInfo
typedef struct akill_ Akill
typedef struct sxline_ SXLine
typedef struct hostcore_ HostCore
typedef struct newsitem_ NewsItem
typedef struct exception_ Exception
typedef struct cbmode_ CBMode
typedef struct cbmodeinfo_ CBModeInfo
typedef struct cmmode_ CMMode
typedef struct csmode_ CSMode
typedef struct cumode_ CUMode
typedef struct csmodeutil_ CSModeUtil
typedef struct session_ Session
typedef struct uid_ Uid
typedef struct ircdvars_ IRCDVar
typedef struct ircdcapab_ IRCDCAPAB
typedef struct ignore_data IgnoreData
typedef struct ircd_proto_ IRCDProto
typedef struct ircd_modes_ IRCDModes
typedef struct capabinfo_ CapabInfo

Enumerations

enum  boolean { false, true }
enum  SyncState { SSYNC_UNKNOWN = 0, SSYNC_IN_PROGRESS = 1, SSYNC_DONE = 2 }

Define Documentation

#define _GNU_SOURCE

Definition at line 29 of file services.h.

#define ACCESS_AOP   5

Definition at line 614 of file services.h.

Referenced by do_aop(), do_xop(), and get_xop_level().

#define ACCESS_FOUNDER   10000
#define ACCESS_HOP   4

Definition at line 613 of file services.h.

Referenced by do_hop(), and get_xop_level().

#define ACCESS_INVALID   -10000

Definition at line 603 of file services.h.

Referenced by check_access(), do_access(), do_alist(), and do_levels().

#define ACCESS_SOP   10

Definition at line 615 of file services.h.

Referenced by do_sop(), and get_xop_level().

#define ACCESS_SUPERADMIN   10001

Definition at line 608 of file services.h.

#define ACCESS_VOP   3

Definition at line 612 of file services.h.

Referenced by do_vop(), and get_xop_level().

#define AK_ISNICK   0x0002
#define AK_STUCK   0x0004

Definition at line 634 of file services.h.

Referenced by akick_view(), is_stuck(), and stick_all().

#define AK_USED   0x0001
#define BI_PRIVATE   0x0001

Definition at line 1337 of file services.h.

Referenced by do_assign(), do_botlist(), and do_info().

#define BOT_VERSION   10

Definition at line 461 of file services.h.

Referenced by load_bs_dbase(), and save_bs_dbase().

#define BS_DONTKICKOPS   0x00000001

Definition at line 791 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_DONTKICKVOICES   0x00000002

Definition at line 792 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_FANTASY   0x00000004

Definition at line 793 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_GREET   0x00000010

Definition at line 795 of file services.h.

Referenced by chan_adduser2(), and do_info().

#define BS_KICK_BADWORDS   0x08000000

Definition at line 803 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_BOLDS   0x80000000

Definition at line 799 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_CAPS   0x04000000

Definition at line 804 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_COLORS   0x40000000

Definition at line 800 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_FLOOD   0x02000000

Definition at line 805 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_REPEAT   0x01000000

Definition at line 806 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_REVERSES   0x20000000

Definition at line 801 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_KICK_UNDERLINES   0x10000000

Definition at line 802 of file services.h.

Referenced by botchanmsgs(), and do_info().

#define BS_NOBOT   0x00000020

Definition at line 796 of file services.h.

Referenced by do_assign(), and do_info().

#define BS_SYMBIOSIS   0x00000008

Definition at line 794 of file services.h.

Referenced by do_info().

#define BW_ANY   0

Definition at line 644 of file services.h.

Referenced by botchanmsgs(), and do_badwords().

#define BW_END   3

Definition at line 647 of file services.h.

Referenced by badwords_list(), and botchanmsgs().

#define BW_SINGLE   1

Definition at line 645 of file services.h.

Referenced by badwords_list(), and botchanmsgs().

#define BW_START   2

Definition at line 646 of file services.h.

Referenced by badwords_list(), and botchanmsgs().

#define CA_ACCESS_CHANGE   11

Definition at line 758 of file services.h.

Referenced by do_access().

#define CA_ACCESS_LIST   8

Definition at line 755 of file services.h.

Referenced by do_access().

#define CA_AKICK   1

Definition at line 748 of file services.h.

Referenced by do_akick(), do_set_xop(), and my_cs_enforce().

#define CA_ASSIGN   13

Definition at line 760 of file services.h.

Referenced by do_assign(), and do_unassign().

#define CA_AUTODEOP   5
#define CA_AUTOHALFOP   22
#define CA_AUTOOP   4
#define CA_AUTOPROTECT   23
#define CA_AUTOVOICE   6

Definition at line 753 of file services.h.

Referenced by chan_set_correct_modes(), check_should_voice(), do_levels(), and do_set_xop().

#define CA_BADWORDS   14

Definition at line 761 of file services.h.

Referenced by do_badwords().

#define CA_BAN   33

Definition at line 784 of file services.h.

Referenced by canBanUser(), do_ban(), and do_fantasy().

#define CA_BANME   32

Definition at line 783 of file services.h.

Referenced by do_ban(), and do_fantasy().

#define CA_CLEAR   9

Definition at line 756 of file services.h.

Referenced by do_clear().

#define CA_FANTASIA   16

Definition at line 763 of file services.h.

Referenced by botchanmsgs().

#define CA_GETKEY   21

Definition at line 768 of file services.h.

Referenced by do_getkey().

#define CA_GREET   18

Definition at line 765 of file services.h.

Referenced by chan_adduser2().

#define CA_HALFOP   26

Definition at line 773 of file services.h.

Referenced by do_set_xop().

#define CA_HALFOPME   25

Definition at line 772 of file services.h.

Referenced by chan_set_correct_modes(), and do_set_xop().

#define CA_INFO   35

Definition at line 786 of file services.h.

Referenced by do_info().

#define CA_INVITE   0

Definition at line 747 of file services.h.

Referenced by do_invite().

#define CA_KICK   30

Definition at line 777 of file services.h.

Referenced by do_cs_kick(), and do_fantasy().

#define CA_KICKME   29

Definition at line 776 of file services.h.

Referenced by do_cs_kick(), and do_fantasy().

#define CA_MEMO   12

Definition at line 759 of file services.h.

Referenced by chan_adduser2(), do_del(), do_info(), do_list(), do_read(), do_set_limit(), and memo_send_from().

#define CA_NOJOIN   10
#define CA_NOKICK   15

Definition at line 762 of file services.h.

Referenced by botchanmsgs().

#define CA_OPDEOP   7

Definition at line 754 of file services.h.

Referenced by do_set_xop().

#define CA_OPDEOPME   24

Definition at line 771 of file services.h.

Referenced by chan_set_correct_modes(), and do_set_xop().

#define CA_PROTECT   28

Definition at line 775 of file services.h.

Referenced by updateProtectDetails().

#define CA_PROTECTME   27

Definition at line 774 of file services.h.

Referenced by chan_set_correct_modes(), and updateProtectDetails().

#define CA_SAY   17

Definition at line 764 of file services.h.

Referenced by do_act(), and do_say().

#define CA_SET   2

Definition at line 749 of file services.h.

Referenced by do_kickcmd(), do_set(), and do_set_xop().

#define CA_SIGNKICK   31

Definition at line 778 of file services.h.

Referenced by bot_raw_ban(), bot_raw_kick(), do_ban(), and do_cs_kick().

#define CA_SIZE   36
#define CA_TOPIC   34

Definition at line 785 of file services.h.

Referenced by do_cs_topic(), and my_cs_appendtopic().

#define CA_UNBAN   3

Definition at line 750 of file services.h.

Referenced by do_fantasy(), and do_unban().

#define CA_VOICE   20

Definition at line 767 of file services.h.

Referenced by do_set_xop().

#define CA_VOICEME   19

Definition at line 766 of file services.h.

Referenced by do_set_xop().

#define CAPAB_BURST   0x00000040

Definition at line 1370 of file services.h.

#define CAPAB_CHANMODE   0x10000000

Definition at line 1392 of file services.h.

Referenced by do_stats().

#define CAPAB_CLIENT   0x00020000

Definition at line 1381 of file services.h.

#define CAPAB_DKEY   0x00000200

Definition at line 1373 of file services.h.

#define CAPAB_DODKEY   0x00000800

Definition at line 1375 of file services.h.

#define CAPAB_DOZIP   0x00000400

Definition at line 1374 of file services.h.

#define CAPAB_IPV6   0x00040000

Definition at line 1382 of file services.h.

#define CAPAB_KNOCK   0x00010000

Definition at line 1380 of file services.h.

#define CAPAB_NICK2   0x01000000

Definition at line 1388 of file services.h.

#define CAPAB_NICKCHARS   0x40000000

Definition at line 1394 of file services.h.

Referenced by do_stats().

#define CAPAB_NICKIP   0x00000008

Definition at line 1367 of file services.h.

#define CAPAB_NOQUIT   0x00000001

Definition at line 1364 of file services.h.

#define CAPAB_NSJOIN   0x00000010

Definition at line 1368 of file services.h.

#define CAPAB_PT4   0x00004000

Definition at line 1378 of file services.h.

#define CAPAB_QS   0x00001000

Definition at line 1376 of file services.h.

#define CAPAB_SCS   0x00002000

Definition at line 1377 of file services.h.

#define CAPAB_SJB64   0x20000000

Definition at line 1393 of file services.h.

#define CAPAB_SN2   0x00100000

Definition at line 1384 of file services.h.

#define CAPAB_SSJ3   0x00800000

Definition at line 1387 of file services.h.

#define CAPAB_SSJ5   0x00080000

Definition at line 1383 of file services.h.

#define CAPAB_TLKEXT   0x08000000

Definition at line 1391 of file services.h.

#define CAPAB_TOKEN   0x00400000

Definition at line 1386 of file services.h.

#define CAPAB_TS3   0x00000080

Definition at line 1371 of file services.h.

#define CAPAB_TS5   0x00000100

Definition at line 1372 of file services.h.

#define CAPAB_TSMODE   0x00000002

Definition at line 1365 of file services.h.

#define CAPAB_UID   0x00008000

Definition at line 1379 of file services.h.

#define CAPAB_UMODE2   0x02000000

Definition at line 1389 of file services.h.

#define CAPAB_UNCONNECT   0x00000004

Definition at line 1366 of file services.h.

#define CAPAB_VHOST   0x00200000

Definition at line 1385 of file services.h.

#define CAPAB_VL   0x04000000

Definition at line 1390 of file services.h.

#define CAPAB_ZIP   0x00000020

Definition at line 1369 of file services.h.

#define CBM_MINUS_NO_ARG   0x0001

Definition at line 926 of file services.h.

Referenced by anope_event_capab(), chan_get_modes(), chan_set_modes(), and check_modes().

#define CBM_NO_MLOCK   0x0002

Definition at line 927 of file services.h.

Referenced by anope_event_capab(), defconParseModeString(), and do_set_mlock().

#define CBM_NO_USER_MLOCK   0x0004

Definition at line 928 of file services.h.

Referenced by anope_event_capab(), and do_set_mlock().

#define CHAN_VERSION   16

Definition at line 462 of file services.h.

Referenced by load_cs_dbase(), and save_cs_dbase().

#define CI_ENCRYPTEDPW   0x00000100

Definition at line 725 of file services.h.

#define CI_INHABIT   0x80000000

Definition at line 744 of file services.h.

Referenced by check_kick().

#define CI_KEEPTOPIC   0x00000001

Definition at line 709 of file services.h.

Referenced by do_info(), listchans(), and restore_topic().

#define CI_MEMO_HARDMAX   0x00000400

Definition at line 729 of file services.h.

Referenced by do_info(), and do_set_limit().

#define CI_NO_EXPIRE   0x00000200

Definition at line 727 of file services.h.

Referenced by do_alist(), do_info(), do_list(), expire_chans(), and listchans().

#define CI_OPNOTICE   0x00000800

Definition at line 731 of file services.h.

Referenced by do_info().

#define CI_PEACE   0x00000020
#define CI_PRIVATE   0x00000004

Definition at line 713 of file services.h.

Referenced by do_info(), do_list(), and listchans().

#define CI_RESTRICTED   0x00000010

Definition at line 717 of file services.h.

Referenced by do_enforce_set(), do_info(), and listchans().

#define CI_SECURE   0x00000040
#define CI_SECUREFOUNDER   0x00001000

Definition at line 733 of file services.h.

Referenced by check_should_owner(), do_drop(), do_info(), and do_set().

#define CI_SECUREOPS   0x00000002
#define CI_SIGNKICK   0x00002000

Definition at line 735 of file services.h.

Referenced by bot_raw_ban(), bot_raw_kick(), do_ban(), do_cs_kick(), do_info(), and do_set_signkick().

#define CI_SIGNKICK_LEVEL   0x00004000

Definition at line 737 of file services.h.

Referenced by bot_raw_ban(), bot_raw_kick(), do_ban(), do_cs_kick(), and do_info().

#define CI_SUSPENDED   0x00010000
#define CI_TOPICLOCK   0x00000008

Definition at line 715 of file services.h.

Referenced by check_topiclock(), do_info(), and listchans().

#define CI_VERBOTEN   0x00000080
#define CI_XOP   0x00008000

Definition at line 739 of file services.h.

Referenced by access_list(), do_access(), do_alist(), do_info(), do_levels(), do_set_xop(), and do_xop().

#define CUF_PROTECT_BOTSERV   0x0001

Definition at line 954 of file services.h.

Referenced by chan_set_modes().

#define CUS_DEOPPED   0x0080

Definition at line 1344 of file services.h.

Referenced by chan_set_modes(), and get_new_statusmode().

#define CUS_HALFOP   0x0004
#define CUS_OP   0x0001
#define CUS_OWNER   0x0008
#define CUS_PROTECT   0x0010
#define CUS_VOICE   0x0002
#define DEF_LANGUAGE   LANG_EN_US

Definition at line 1335 of file services.h.

Referenced by lang_init().

#define DEFCON_AKILL_NEW_CLIENTS   256

Definition at line 1260 of file services.h.

Referenced by defcon_sendlvls(), do_nick(), and read_config().

#define DEFCON_FORCE_CHAN_MODES   8

Definition at line 1255 of file services.h.

Referenced by defcon_sendlvls(), read_config(), and runDefCon().

#define DEFCON_NO_MLOCK_CHANGE   4

Definition at line 1254 of file services.h.

Referenced by defcon_sendlvls(), and do_set_mlock().

#define DEFCON_NO_NEW_CHANNELS   1

DEFCON Defines

Definition at line 1252 of file services.h.

Referenced by defcon_sendlvls(), and do_register().

#define DEFCON_NO_NEW_CLIENTS   32

Definition at line 1257 of file services.h.

Referenced by check_akill(), and defcon_sendlvls().

#define DEFCON_NO_NEW_MEMOS   512
#define DEFCON_NO_NEW_NICKS   2

Definition at line 1253 of file services.h.

Referenced by defcon_sendlvls(), do_group(), and do_register().

#define DEFCON_OPER_ONLY   64

Definition at line 1258 of file services.h.

Referenced by defcon_sendlvls(), and do_run_cmd().

#define DEFCON_REDUCE_SESSION   16

Definition at line 1256 of file services.h.

Referenced by add_session(), defcon_sendlvls(), and read_config().

#define DEFCON_SILENT_OPER_ONLY   128

Definition at line 1259 of file services.h.

Referenced by defcon_sendlvls(), and do_run_cmd().

#define encrypt   encrypt_

Definition at line 194 of file services.h.

#define ENTRYTYPE_CIDR4   0x00000001

Definition at line 988 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_HOST   0x00000080

Definition at line 994 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_HOST_WILD   0x00000040

Definition at line 993 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_NICK   0x00000008

Definition at line 990 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_NICK_WILD   0x00000004

Definition at line 989 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_NONE   0x00000000

Definition at line 987 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_USER   0x00000020

Definition at line 992 of file services.h.

Referenced by entry_match().

#define ENTRYTYPE_USER_WILD   0x00000010

Definition at line 991 of file services.h.

Referenced by entry_match().

#define EXCEPTION_VERSION   9

Definition at line 463 of file services.h.

Referenced by load_exceptions(), and save_exceptions().

#define GET_BOT (   bot  )     ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (find_uid(bot) ? find_uid(bot)->uid : bot) : bot)
#define GET_USER (   u  )     ((ircd->p10 || (UseTS6 && ircd->ts6)) ? (u->uid ? u->uid : u->nick) : u->nick)
#define h_addr   h_addr_list[0]

Definition at line 90 of file services.h.

#define HELP_VERSION   1

Definition at line 468 of file services.h.

#define HOST_VERSION   3

Definition at line 469 of file services.h.

Referenced by load_hs_dbase(), and save_hs_dbase().

#define isvalidnick (   c  )     ( isalnum(c) || ((c) >='\x5B' && (c) <='\x60') || ((c) >='\x7B' && (c) <='\x7D') || (c)=='-' )

RFC: defination of a valid nick nickname = ( letter / special ) *8( letter / digit / special / "-" ) letter = x41-5A / x61-7A ; A-Z / a-z digit = x30-39 ; 0-9 special = x5B-60 / x7B-7D ; "[", "]", "\", "`", "_", "^", "{", "|", "}"

Definition at line 1405 of file services.h.

Referenced by do_bot(), do_forbid(), and do_svsnick().

#define LANG_CAT   10

Definition at line 1323 of file services.h.

Referenced by lang_init().

#define LANG_DE   9

Definition at line 1322 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_EN_US   0

Definition at line 1313 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_ES   4

Definition at line 1317 of file services.h.

Referenced by lang_init(), and m_AddLanguages().

#define LANG_FR   6

Definition at line 1319 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_GR   11

Definition at line 1324 of file services.h.

Referenced by lang_init().

#define LANG_HUN   14

Definition at line 1327 of file services.h.

Referenced by lang_init().

#define LANG_IT   8

Definition at line 1321 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_JA_EUC   2

Definition at line 1315 of file services.h.

#define LANG_JA_JIS   1

Definition at line 1314 of file services.h.

#define LANG_JA_SJIS   3

Definition at line 1316 of file services.h.

#define LANG_JA_UTF8   16

Definition at line 1329 of file services.h.

Referenced by lang_init().

#define LANG_NL   12

Definition at line 1325 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_PL   15

Definition at line 1328 of file services.h.

Referenced by lang_init().

#define LANG_PT   5

Definition at line 1318 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_RU   13

Definition at line 1326 of file services.h.

Referenced by lang_init(), m_AddLanguages(), mAddLanguages(), and my_add_languages().

#define LANG_TR   7

Definition at line 1320 of file services.h.

Referenced by lang_init().

#define MAX_CMD_HASH   1024

Definition at line 23 of file services.h.

#define MAXPARAMS   8

Definition at line 426 of file services.h.

Referenced by moduleGetConfigDirective(), parse(), and read_config().

#define MF_NOTIFYS   0x0004

Definition at line 1268 of file services.h.

Referenced by do_cancel().

#define MF_RECEIPT   0x0002

Definition at line 1267 of file services.h.

Referenced by read_memo().

#define MF_UNREAD   0x0001

Definition at line 1266 of file services.h.

Referenced by check_memos(), do_cancel(), do_info(), do_list(), do_memocheck(), do_read(), and list_memo().

#define MUT_DEHALFOP   4

Definition at line 1350 of file services.h.

Referenced by do_dehalfop().

#define MUT_DEOP   0

Definition at line 1346 of file services.h.

Referenced by do_deop().

#define MUT_DEPROTECT   6

Definition at line 1352 of file services.h.

Referenced by do_deprotect().

#define MUT_DEVOICE   2

Definition at line 1348 of file services.h.

Referenced by do_devoice().

#define MUT_HALFOP   5

Definition at line 1351 of file services.h.

Referenced by do_halfop().

#define MUT_OP   1

Definition at line 1347 of file services.h.

Referenced by do_op().

#define MUT_PROTECT   7

Definition at line 1353 of file services.h.

Referenced by do_protect().

#define MUT_VOICE   3

Definition at line 1349 of file services.h.

Referenced by do_voice().

#define NEWS_LOGON   0

Definition at line 1047 of file services.h.

Referenced by display_news(), do_logonnews(), and do_nick().

#define NEWS_OPER   1
#define NEWS_RANDOM   2

Definition at line 1049 of file services.h.

Referenced by display_news(), do_nick(), and do_randomnews().

#define NEWS_VERSION   9

Definition at line 464 of file services.h.

Referenced by load_news(), and save_news().

#define NI_AUTOOP   0x00080000

Definition at line 1307 of file services.h.

Referenced by chan_set_correct_modes(), and do_info().

#define NI_ENCRYPTEDPW   0x00004000

Definition at line 1302 of file services.h.

#define NI_HIDE_EMAIL   0x00000080

Definition at line 1295 of file services.h.

Referenced by do_info().

#define NI_HIDE_MASK   0x00000100

Definition at line 1296 of file services.h.

Referenced by do_info(), and do_list().

#define NI_HIDE_QUIT   0x00000200

Definition at line 1297 of file services.h.

Referenced by do_info().

#define NI_HIDE_STATUS   0x00020000

Definition at line 1305 of file services.h.

Referenced by do_info().

#define NI_KILL_IMMED   0x00000800

Definition at line 1299 of file services.h.

Referenced by validate_user().

#define NI_KILL_QUICK   0x00000400

Definition at line 1298 of file services.h.

Referenced by do_saset_kill(), do_set_kill(), do_suspend(), and validate_user().

#define NI_KILLPROTECT   0x00000001
#define NI_MEMO_HARDMAX   0x00000008

Definition at line 1291 of file services.h.

Referenced by do_info(), and do_set_limit().

#define NI_MEMO_MAIL   0x00010000

Definition at line 1304 of file services.h.

Referenced by memo_send_from().

#define NI_MEMO_RECEIVE   0x00000020

Definition at line 1293 of file services.h.

Referenced by do_info(), do_set_notify(), and memo_send_from().

#define NI_MEMO_SIGNON   0x00000010

Definition at line 1292 of file services.h.

Referenced by check_memos(), do_info(), and do_set_notify().

#define NI_MSG   0x00000004
#define NI_PRIVATE   0x00000040

Definition at line 1294 of file services.h.

Referenced by do_info(), do_list(), and listnicks().

#define NI_SECURE   0x00000002
#define NI_SERVICES_ADMIN   0x00002000
#define NI_SERVICES_OPER   0x00001000
#define NI_SERVICES_ROOT   0x00008000
#define NI_SUSPENDED   0x00040000
#define NICK_VERSION   14

Definition at line 465 of file services.h.

Referenced by load_ns_dbase(), load_old_ns_dbase(), and save_ns_dbase().

#define NS_GUESTED   0x0100

Definition at line 1277 of file services.h.

Referenced by cancel_user().

#define NS_IDENTIFIED   0x8000
#define NS_KILL_HELD   0x1000

Definition at line 1276 of file services.h.

Referenced by do_release(), and m_whois().

#define NS_MASTER   0x0200

Definition at line 1280 of file services.h.

Referenced by load_old_ns_dbase().

#define NS_NO_EXPIRE   0x0004

Definition at line 1272 of file services.h.

Referenced by do_glist(), do_info(), do_list(), expire_nicks(), and listnicks().

#define NS_OLD_ENCRYPTEDPW   0x0001

Definition at line 1285 of file services.h.

Referenced by load_old_ns_dbase().

#define NS_ON_ACCESS   0x2000

Definition at line 1275 of file services.h.

#define NS_RECOGNIZED   0x4000
#define NS_TEMPORARY   0xFF00

Definition at line 1283 of file services.h.

#define NS_TRANSGROUP   0xC000

Definition at line 1281 of file services.h.

#define NS_VERBOTEN   0x0002
#define NUM_LANGS   17

Definition at line 1331 of file services.h.

Referenced by do_saset_language(), do_set_language(), and read_config().

#define OPER_VERSION   13

Definition at line 467 of file services.h.

Referenced by load_os_dbase(), and save_os_dbase().

#define PARAM_DEPRECATED   -2

Definition at line 448 of file services.h.

Referenced by parse_directive().

#define PARAM_FULLONLY   0x02

Definition at line 453 of file services.h.

Referenced by parse_directive().

#define PARAM_INT   1

Definition at line 440 of file services.h.

Referenced by parse_directive(), and read_config().

#define PARAM_NONE   0

Definition at line 439 of file services.h.

#define PARAM_OPTIONAL   0x01

Definition at line 452 of file services.h.

Referenced by parse_directive().

#define PARAM_PORT   3

Definition at line 442 of file services.h.

Referenced by parse_directive().

#define PARAM_POSINT   2

Definition at line 441 of file services.h.

Referenced by parse_directive(), and read_config().

#define PARAM_RELOAD   0x04

Definition at line 454 of file services.h.

Referenced by parse_directive(), and read_config().

#define PARAM_SET   -1

Definition at line 446 of file services.h.

Referenced by parse_directive(), and read_config().

#define PARAM_STRING   4

Definition at line 443 of file services.h.

Referenced by parse_directive(), and read_config().

#define PARAM_STRING_ARRAY   6

Definition at line 445 of file services.h.

#define PARAM_TIME   5

Definition at line 444 of file services.h.

Referenced by parse_directive(), and read_config().

#define PRE_NICK_VERSION   2

Definition at line 466 of file services.h.

Referenced by load_ns_req_db(), and save_ns_req_dbase().

#define SERVER_ISME   0x0001
#define SERVER_ISUPLINK   0x0004

Definition at line 865 of file services.h.

Referenced by do_jupe().

#define SERVER_JUPED   0x0002
#define tolower   tolower_
#define toupper   toupper_

Definition at line 191 of file services.h.

#define TTB_BADWORDS   4

Definition at line 813 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_BOLDS   0

Definition at line 809 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_CAPS   5

Definition at line 814 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_COLORS   1

Definition at line 810 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_FLOOD   6

Definition at line 815 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_REPEAT   7

Definition at line 816 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_REVERSES   2

Definition at line 811 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define TTB_SIZE   8

Definition at line 817 of file services.h.

Referenced by db_mysql_load_cs_dbase(), get_chanserv_stats(), load_cs_dbase(), and makechan().

#define TTB_UNDERLINES   3

Definition at line 812 of file services.h.

Referenced by botchanmsgs(), do_info(), and do_kickcmd().

#define USED_LANGS   14

Definition at line 1332 of file services.h.

Referenced by read_config().

#define VA_COPY (   DEST,
  SRC 
)    memcpy ((&DEST), (&SRC), sizeof(va_list))

Definition at line 153 of file services.h.

Referenced by process_numlist(), slist_delete_range(), and slist_enum().


Typedef Documentation

typedef struct akill_ Akill

Definition at line 234 of file services.h.

typedef struct badword_ BadWord

Definition at line 230 of file services.h.

typedef struct bandata_ BanData

Definition at line 231 of file services.h.

typedef struct botinfo_ BotInfo

Definition at line 228 of file services.h.

typedef struct capabinfo_ CapabInfo

Definition at line 1358 of file services.h.

typedef struct cbmode_ CBMode

Definition at line 239 of file services.h.

typedef struct cbmodeinfo_ CBModeInfo

Definition at line 240 of file services.h.

typedef struct channel_ Channel

Definition at line 220 of file services.h.

typedef struct chaninfo_ ChannelInfo

Definition at line 229 of file services.h.

typedef struct cmmode_ CMMode

Definition at line 241 of file services.h.

typedef struct csmode_ CSMode

Definition at line 242 of file services.h.

typedef struct csmodeutil_ CSModeUtil

Definition at line 244 of file services.h.

typedef struct cumode_ CUMode

Definition at line 243 of file services.h.

typedef struct c_elist EList

Definition at line 221 of file services.h.

typedef struct c_elist_entry Entry

Definition at line 222 of file services.h.

typedef struct exception_ Exception

Definition at line 238 of file services.h.

typedef struct hostcore_ HostCore

Definition at line 236 of file services.h.

typedef struct ignore_data IgnoreData
typedef struct ircdcapab_ IRCDCAPAB

Definition at line 274 of file services.h.

typedef struct ircd_modes_ IRCDModes
typedef struct ircd_proto_ IRCDProto

IRCD Protocol module support struct. protocol modules register the command they want touse for function X with our set functions, we then call the correct function for the anope_ commands.

typedef struct ircdvars_ IRCDVar

Definition at line 273 of file services.h.

typedef struct mailinfo_ MailInfo

Definition at line 233 of file services.h.

typedef struct memo_ Memo

Definition at line 224 of file services.h.

typedef struct ModuleData_ ModuleData

Definition at line 223 of file services.h.

typedef struct newsitem_ NewsItem

Definition at line 237 of file services.h.

typedef struct nickalias_ NickAlias

Definition at line 226 of file services.h.

typedef struct nickcore_ NickCore

Definition at line 227 of file services.h.

typedef struct nickrequest_ NickRequest

Definition at line 225 of file services.h.

typedef struct server_ Server

Definition at line 218 of file services.h.

typedef struct session_ Session

Definition at line 245 of file services.h.

typedef struct sxline_ SXLine

Definition at line 235 of file services.h.

typedef struct uid_ Uid

Definition at line 246 of file services.h.

typedef struct user_ User

Definition at line 219 of file services.h.

typedef struct userdata_ UserData

Definition at line 232 of file services.h.


Enumeration Type Documentation

enum boolean
Enumerator:
false 
true 

Definition at line 255 of file services.h.

enum SyncState
Enumerator:
SSYNC_UNKNOWN 
SSYNC_IN_PROGRESS 
SSYNC_DONE 

Definition at line 843 of file services.h.