]> jfr.im git - solanum.git/blobdiff - include/client.h
CREDITS: add mcintosh
[solanum.git] / include / client.h
index 8df9431df65e82520b4d1ac838d53ee02d137ae2..fa736bd388341e5ec2f87adca0936887e8b1ccc3 100644 (file)
@@ -5,7 +5,7 @@
  *  Copyright (C) 1990 Jarkko Oikarinen and University of Oulu, Co Center
  *  Copyright (C) 1996-2002 Hybrid Development Team
  *  Copyright (C) 2002-2004 ircd-ratbox development team
- *  Copyright (C) 2005 William Pitcock and Jilles Tjoelker
+ *  Copyright (C) 2005 Ariadne Conill and Jilles Tjoelker
  *
  *  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
@@ -93,16 +93,6 @@ struct Server
        struct scache_entry *nameinfo;
 };
 
-struct ZipStats
-{
-       unsigned long long in;
-       unsigned long long in_wire;
-       unsigned long long out;
-       unsigned long long out_wire;
-       double in_ratio;
-       double out_ratio;
-};
-
 struct Client
 {
        rb_dlink_node node;
@@ -277,7 +267,6 @@ struct LocalUser
        struct ws_ctl *ws_ctl;                  /* ctl for wsockd */
        SSL_OPEN_CB *ssl_callback;              /* ssl connection is now open */
        uint32_t localflags;
-       struct ZipStats *zipstats;              /* zipstats */
        uint16_t cork_count;                    /* used for corking/uncorking connections */
        struct ev_entry *event;                 /* used for associated events */
 
@@ -438,6 +427,7 @@ struct ListClient
 #define LFLAGS_CORK            0x00000004
 #define LFLAGS_SCTP            0x00000008
 #define LFLAGS_SECURE          0x00000010      /* for marking SSL clients as secure before registration */
+/* LFLAGS_FAKE: client may not have the usually expected machinery plugged in; don't assert on it. For tests only. */
 #define LFLAGS_FAKE            0x00000020
 
 /* umodes, settable flags */
@@ -538,6 +528,7 @@ struct ListClient
 #define IsNoForward(x)          ((x)->umodes & UMODE_NOFORWARD)
 
 #define SetGotId(x)             ((x)->flags |= FLAGS_GOTID)
+#define ClearGotId(x)           ((x)->flags &= ~FLAGS_GOTID)
 #define IsGotId(x)              (((x)->flags & FLAGS_GOTID) != 0)
 
 #define IsExemptKline(x)        ((x)->flags & FLAGS_EXEMPTKLINE)