struct Client;
struct StatDesc;
-#define GLINE_MAX_EXPIRE 604800 /**< max expire: 7 days */
+#define GLINE_MAX_EXPIRE 31536000 /**< max expire: 1 year */
/** Description of a G-line. */
struct Gline {
struct Gline *gl_next; /**< Next G-line in linked list. */
struct Gline**gl_prev_p; /**< Previous pointer to this G-line. */
+ char *gl_nick; /**< Nickname mask. */
char *gl_user; /**< Username mask (or channel/realname mask). */
char *gl_host; /**< Host prtion of mask. */
char *gl_reason; /**< Reason for G-line. */
/** Test whether \a g is local to this server. */
#define GlineIsLocal(g) ((g)->gl_flags & GLINE_LOCAL)
+/** Return nick mask of a G-line. */
+#define GlineNick(g) ((g)->gl_nick)
/** Return user mask of a G-line. */
#define GlineUser(g) ((g)->gl_user)
/** Return host mask of a G-line. */
extern void gline_stats(struct Client *sptr, const struct StatDesc *sd,
char *param);
extern int gline_memory_count(size_t *gl_size);
+extern struct Gline *IsNickGlined(struct Client *cptr, char *nick);
#endif /* INCLUDED_gline_h */