]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - include/client.h
Show reason for failed outgoing SSL handshakes to opers.
[irc/rqf/shadowircd.git] / include / client.h
index e44932e9ae451d14b1e187295c383119f4fba4f6..9c6203000546a10aca48dfc964656cfbc52c8a1d 100644 (file)
@@ -38,8 +38,7 @@
 #include "channel.h"
 #include "res.h"
 #include "snomask.h"
-#include "irc_string.h"
-#include "sprintf_irc.h"
+#include "match.h"
 #include "ircd.h"
 
 /* other structs */
@@ -111,11 +110,11 @@ struct Server
 
 struct ZipStats
 {
-       unsigned long long in;\r
-       unsigned long long in_wire;\r
-       unsigned long long out;\r
-       unsigned long long out_wire;\r
-       double in_ratio;\r
+       unsigned long long in;
+       unsigned long long in_wire;
+       unsigned long long out;
+       unsigned long long out_wire;
+       double in_ratio;
        double out_ratio;
 };
 
@@ -231,6 +230,7 @@ struct LocalUser
         * agreed. lets get rid of it someday! --nenolod
         */
        char *passwd;
+       char *auth_user;
        char *opername; /* name of operator{} block being used or tried (challenge) */
        char *challenge;
        char *fullcaps;
@@ -374,12 +374,7 @@ struct exit_client_hook
  * ts stuff
  */
 #define TS_CURRENT     6
-
-#ifdef TS6_ONLY
 #define TS_MIN          6
-#else
-#define TS_MIN          3
-#endif
 
 #define TS_DOESTS       0x10000000
 #define DoesTS(x)       ((x)->tsinfo & TS_DOESTS)
@@ -441,9 +436,8 @@ struct exit_client_hook
 /* overflow flags */
 /* EARLIER FLAGS ARE IN s_newconf.h */
 #define FLAGS2_EXEMPTRESV      0x00400000
-#define FLAGS2_EXEMPTGLINE      0x00800000
-#define FLAGS2_EXEMPTKLINE      0x01000000
-#define FLAGS2_EXEMPTFLOOD      0x02000000
+#define FLAGS2_EXEMPTKLINE      0x00800000
+#define FLAGS2_EXEMPTFLOOD      0x01000000
 #define FLAGS2_IP_SPOOFING      0x10000000
 #define FLAGS2_EXEMPTSPAMBOT   0x20000000
 #define FLAGS2_EXEMPTSHIDE     0x40000000
@@ -537,8 +531,6 @@ struct exit_client_hook
  */
 #define IsExemptKline(x)        ((x)->flags2 & FLAGS2_EXEMPTKLINE)
 #define SetExemptKline(x)       ((x)->flags2 |= FLAGS2_EXEMPTKLINE)
-#define IsExemptGline(x)        ((x)->flags2 & FLAGS2_EXEMPTGLINE)
-#define SetExemptGline(x)       ((x)->flags2 |= FLAGS2_EXEMPTGLINE)
 #define IsExemptFlood(x)        ((x)->flags2 & FLAGS2_EXEMPTFLOOD)
 #define SetExemptFlood(x)       ((x)->flags2 |= FLAGS2_EXEMPTFLOOD)
 #define IsExemptSpambot(x)     ((x)->flags2 & FLAGS2_EXEMPTSPAMBOT)
@@ -573,12 +565,10 @@ struct exit_client_hook
 extern void check_banned_lines(void);
 extern void check_klines_event(void *unused);
 extern void check_klines(void);
-extern void check_glines(void);
 extern void check_dlines(void);
 extern void check_xlines(void);
 
 extern const char *get_client_name(struct Client *client, int show_ip);
-extern const char *get_server_name(struct Client *client, int show_ip);
 extern const char *log_client_name(struct Client *, int);
 extern int is_remote_connect(struct Client *);
 extern void init_client(void);