X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fconf.h;h=0180515569dcbf5515211437776a3a25a460fca3;hb=e1de769ab9958f6debbd884a1555de09d1191d32;hp=2308e4cbb83d3844c9baf8b01b3ab07afb05ef31;hpb=f78b0c61e967c66386803a3dc77069c66bd664de;p=ngircd-alex.git diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h index 2308e4cb..01805155 100644 --- a/src/ngircd/conf.h +++ b/src/ngircd/conf.h @@ -26,12 +26,11 @@ #include "conf-ssl.h" -typedef struct _Conf_Oper -{ +struct Conf_Oper { char name[CLIENT_PASS_LEN]; /* Name (ID) of IRC operator */ char pwd[CLIENT_PASS_LEN]; /* Password */ - char *mask; -} CONF_OPER; + char *mask; /* allowed host mask */ +}; typedef struct _Conf_Server { @@ -125,8 +124,7 @@ GLOBAL int Conf_PongTimeout; GLOBAL int Conf_ConnectRetry; /* Operators */ -GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS]; -GLOBAL unsigned int Conf_Oper_Count; +GLOBAL array Conf_Opers; /* Servers */ GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];