dragonmtn-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dragonmtn-commits] Changes to snowwhite/akill.c


From: Mark Loeser
Subject: [Dragonmtn-commits] Changes to snowwhite/akill.c
Date: Sat, 16 Apr 2005 17:15:39 -0400

Index: snowwhite/akill.c
diff -u snowwhite/akill.c:1.2 snowwhite/akill.c:1.3
--- snowwhite/akill.c:1.2       Tue Apr 12 06:53:45 2005
+++ snowwhite/akill.c   Sat Apr 16 21:15:39 2005
@@ -9,7 +9,7 @@
  * \wd \taz \greg \mysid
  * \date 1996-2001
  *
- * $Id: akill.c,v 1.2 2005/04/12 06:53:45 Halcy0n Exp $
+ * $Id: akill.c,v 1.3 2005/04/16 21:15:39 Halcy0n Exp $
  */
 
 /*
@@ -49,7 +49,6 @@
 #include "hash.h"
 #include "email.h"
 #include "log.h"
-#include "sipc.h"
 #include "timestr.h"
 
 /*******************************************************************/
@@ -100,40 +99,6 @@
 
 /*****************************************************************************/
 
-int IpcConnectType::sendAkills(int akillType, const char *searchText)
-{
-       struct akill *ak;
-       char mask[NICKLEN + USERLEN + HOSTLEN + 3];
-       char length[16];
-       int x = 0;
-
-       if (!firstBanItem)
-               return 0;
-
-       for (ak = firstBanItem; ak; ak = ak->next) {
-               if (ak->type == akillType || ak->type == 0) {
-                       strcpy(mask, ak->nick);
-                       strcat(mask, "!");
-                       strcat(mask, ak->user);
-                       strcat(mask, "@");
-                       strcat(mask, ak->host);
-
-                       if (searchText && strcmp(mask, searchText) )
-                               continue;
-
-                       if (ak->unset)
-                               sprintf(length, "%luh",
-                                               (long)(ak->unset - ak->set) / 
3600);
-                       else
-                               strcpy(length, "forever");
-
-                       fWriteLn("DATA %ld %ld %s %s :%s", ak->set, ak->unset, 
length, mask, ak->reason);
-                       x++;
-               }
-       }
-       return x;
-}
-
 /**
  * \brief Excluded the given nick from akill mailings to ops@ and kline@
  * \param nick -- The setter to be excluded, non-null zero terminated char 
array




reply via email to

[Prev in Thread] Current Thread [Next in Thread]