X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=include%2Fgline.h;h=7763063eadc4320054674ebb940bd3384e0c0c67;hb=065a143ab1c4e5aab94187e51a843a31e93b146a;hp=88f16e3a0d3a1245c398c71abe5c0820b00b28eb;hpb=d4069ba6c227f38a7dd41100a08f7d941d4278b1;p=ircu2.10.12-pk.git diff --git a/include/gline.h b/include/gline.h index 88f16e3..7763063 100644 --- a/include/gline.h +++ b/include/gline.h @@ -70,9 +70,11 @@ extern int gline_add(struct Client *cptr, struct Client *sptr, char *userhost, char *reason, time_t expire, time_t lastmod, unsigned int flags); extern int gline_activate(struct Client *cptr, struct Client *sptr, - struct Gline *gline, time_t lastmod); + struct Gline *gline, time_t lastmod, + unsigned int flags); extern int gline_deactivate(struct Client *cptr, struct Client *sptr, - struct Gline *gline, time_t lastmod); + struct Gline *gline, time_t lastmod, + unsigned int flags); extern struct Gline *gline_find(char *userhost, unsigned int flags); extern struct Gline *gline_lookup(struct Client *cptr); extern void gline_free(struct Gline *gline); @@ -81,29 +83,4 @@ extern int gline_resend(struct Client *cptr, struct Gline *gline); extern int gline_list(struct Client *sptr, char *userhost); extern void gline_stats(struct Client *sptr); -#if 0 /* forget it! */ -#define SetActive(g) ((g)->gl_flags |= GLINE_ACTIVE) -#define ClearActive(g) ((g)->gl_flags &= ~GLINE_ACTIVE) -#define SetGlineIsIpMask(g) ((g)->gl_flags |= GLINE_IPMASK) -#define SetGlineIsLocal(g) ((g)->gl_flags |= GLINE_LOCAL) - -extern struct Gline* GlobalGlineList; -extern struct Gline* BadChanGlineList; - -extern void gline_remove_expired(time_t now); - -extern void add_gline(struct Client *sptr, int ip_mask, - char *host, char *comment, char *user, - time_t expire, int local); -extern struct Gline* make_gline(int is_ipmask, char *host, char *reason, - char *name, time_t expire); -extern struct Gline* find_gline(struct Client *cptr, struct Gline **pgline); -extern void free_gline(struct Gline *gline, struct Gline *prev); - -#ifdef BADCHAN -extern int bad_channel(const char* name); -extern void bad_channel_remove_expired(time_t now); -#endif -#endif /* 0 */ - #endif /* INCLUDED_gline_h */