]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/extban.c
Some clang static analyzer fixes.
[irc/rqf/shadowircd.git] / src / extban.c
index f02c98c42b197ad7a96cda0d5ebbb5db1215e3a7..ca32f08553a9d7137348a35006bfdfc402e4e29f 100644 (file)
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
  *
- *  $Id: extban.c 1389 2006-05-20 19:19:00Z nenolod $
  */
 
 #include "stdinc.h"
-#include "tools.h"
 #include "channel.h"
 #include "client.h"
 #include "common.h"
@@ -69,17 +67,14 @@ int
 valid_extban(const char *banstr, struct Client *client_p, struct Channel *chptr, long mode_type)
 {
        const char *p;
-       int invert = 0, result = EXTBAN_INVALID;
+       int result = EXTBAN_INVALID;
        ExtbanFunc f;
 
        if (*banstr != '$')
                return 0;
        p = banstr + 1;
        if (*p == '~')
-       {
-               invert = 1;
                p++;
-       }
        f = extban_table[(unsigned char) ToLower(*p)];
        if (*p != '\0')
        {