[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Wed Dec 19 00:04:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-19 06:03:40 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 modules/irc/tclirc.c src/patch.h

Log message:

added speedyhand2nick.diff from eggdrop1.6

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/UPDATES1.6
diff -u eggdrop1.7/doc/UPDATES1.6:1.171 eggdrop1.7/doc/UPDATES1.6:1.172
--- eggdrop1.7/doc/UPDATES1.6:1.171	Tue Dec 18 21:00:08 2001
+++ eggdrop1.7/doc/UPDATES1.6	Wed Dec 19 00:03:29 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.171 2001/12/19 03:00:08 guppy Exp $
+$Id: UPDATES1.6,v 1.172 2001/12/19 06:03:29 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+|^Raven^| guppy     made tcl_hand2nick _a lot_ faster
           BarkerJr  only show fake alerts once every 10 seconds to prevent flooding
           BarkerJr  updated doc/MODULES a bit
 RandomAPB Wcc       show the user port as users instead of telnet and the bot port
Index: eggdrop1.7/modules/irc/tclirc.c
diff -u eggdrop1.7/modules/irc/tclirc.c:1.3 eggdrop1.7/modules/irc/tclirc.c:1.4
--- eggdrop1.7/modules/irc/tclirc.c:1.3	Sun Dec  2 06:22:28 2001
+++ eggdrop1.7/modules/irc/tclirc.c	Wed Dec 19 00:03:29 2001
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.3 2001/12/02 12:22:28 ite Exp $
+ * $Id: tclirc.c,v 1.4 2001/12/19 06:03:29 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -600,10 +600,10 @@
 static int tcl_hand2nick STDVAR
 {
   memberlist *m;
-  char s[161];
-  struct chanset_t *chan;
-  struct chanset_t *thechan = NULL;
+  char nuh[161];
+  struct chanset_t *chan, *thechan = NULL;
   struct userrec *u;
+  struct list_type *orig, *q;
 
   BADARGS(2, 3, " handle ?channel?");	/* drummer */
   if (argc > 2) {
@@ -613,21 +613,29 @@
       Tcl_AppendResult(irp, "invalid channel: ", argv[2], NULL);
       return TCL_ERROR;
     }
-  } else {
+  } else
     chan = chanset;
-  }
-  while ((chan != NULL) && ((thechan == NULL) || (thechan == chan))) {
+
+  u = get_user_by_handle(userlist, argv[1]);
+
+  if (!u)
+    return TCL_OK;
+
+  orig = get_user(&USERENTRY_HOSTS, u);
+
+  while (chan && (thechan == NULL || thechan == chan)) {
     for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
-      simple_sprintf(s, "%s!%s", m->nick, m->userhost);
-      u = get_user_by_host(s);
-      if (u && !strcasecmp(u->handle, argv[1])) {
-	Tcl_AppendResult(irp, m->nick, NULL);
-	return TCL_OK;
+      simple_sprintf(nuh, "%s!%s", m->nick, m->userhost);
+      for (q = orig; q; q = q->next) {
+	if (wild_match(q->extra, nuh)) {
+	  Tcl_AppendResult(irp, m->nick, NULL);
+	  return TCL_OK;
+	}
       }
     }
     chan = chan->next;
   }
-  return TCL_OK;		/* blank */
+  return TCL_OK;
 }
 
 static int tcl_nick2hand STDVAR
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.557 eggdrop1.7/src/patch.h:1.558
--- eggdrop1.7/src/patch.h:1.557	Sun Dec 16 08:48:50 2001
+++ eggdrop1.7/src/patch.h	Wed Dec 19 00:03:30 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.557 2001/12/16 14:48:50 guppy Exp $
+ * $Id: patch.h,v 1.558 2001/12/19 06:03:30 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,17 +41,17 @@
  *
  *
  */
-patch("1008513768");		/* current unixtime */
+patch("1008741691");		/* current unixtime */
 /*
  *
  *
  */
-patch("fakemsg");
+patch("speedyhand2nick");
 /*
  *
  *
  */
-patch("fakemsg");
+patch("speedyhand2nick");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list