From: Gunnar Beutner Date: Sat, 13 Jul 2013 14:55:59 +0000 (+0200) Subject: Replace SNIRCD macros with SNIRCD_VERSION. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/22833ec310c89a29fa0ebcfb64e1e3a8c96cf7b5 Replace SNIRCD macros with SNIRCD_VERSION. --HG-- branch : shroudtrusts --- diff --git a/glines/glines.h b/glines/glines.h index 42ea8c83..6fb1bf28 100644 --- a/glines/glines.h +++ b/glines/glines.h @@ -5,8 +5,7 @@ #include "../nick/nick.h" #include "../channel/channel.h" -#define SNIRCD_13 -#undef SNIRCD_14 +#define SNIRCD_VERSION 134 #define MAXUSERGLINEUSERHITS 100 #define MAXUSERGLINECHANNELHITS 10 diff --git a/glines/glines_commands.c b/glines/glines_commands.c index 2805b5a9..5c48a62a 100644 --- a/glines/glines_commands.c +++ b/glines/glines_commands.c @@ -75,7 +75,7 @@ static int glines_gline_helper(void *source, int cargc, char **cargv, int sanity char *mask, *reason; char creator[32]; glinebuf gbuf; -#ifdef SNIRCD_13 +#if SNIRCD_VERSION <= 134 gline *gl; #endif @@ -103,11 +103,11 @@ static int glines_gline_helper(void *source, int cargc, char **cargv, int sanity return CMD_ERROR; } -#ifdef SNIRCD_13 +#if SNIRCD_VERSION <= 134 gl = findgline(mask); if (gl) { - /* snircd 1.3: warn opers that they can't modify this gline */ + /* warn opers that they can't modify this gline */ if (gl->flags & GLINE_ACTIVE) { controlreply(sender, "Active G-Line already exists on %s - unable to modify", cargv[0]); return CMD_ERROR;