[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 29 15:00:05 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-29 20:59:59 UTC
Commited by: Jeff Fisher <guppy at techmonkeys.org>

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

Log message:

added BarkerJr's whomsg patch from 1.6 including a small fix to my last commit on tclirc.c

---------------------- diff included ----------------------
Index: eggdrop1.7/doc/UPDATES1.6
diff -u eggdrop1.7/doc/UPDATES1.6:1.181 eggdrop1.7/doc/UPDATES1.6:1.182
--- eggdrop1.7/doc/UPDATES1.6:1.181	Sat Dec 29 14:55:31 2001
+++ eggdrop1.7/doc/UPDATES1.6	Sat Dec 29 14:59:49 2001
@@ -1,10 +1,11 @@
-$Id: UPDATES1.6,v 1.181 2001/12/29 20:55:31 guppy Exp $
+$Id: UPDATES1.6,v 1.182 2001/12/29 20:59:49 guppy Exp $
 
 Changes in eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.8
 Found by  Fixed by  What...
+          BarkerJr  log the remote .who command
           BarkerJr  fixed a small bug in guppy's last patch
 various   guppy     tcl_botisvoice, tcl_botisop, tcl_botonchan, tcl_onchansplit, tcl_isop,
                     tcl_isvoice, and tcl_handonchan all take channel as an optional argument
Index: eggdrop1.7/modules/irc/tclirc.c
diff -u eggdrop1.7/modules/irc/tclirc.c:1.8 eggdrop1.7/modules/irc/tclirc.c:1.9
--- eggdrop1.7/modules/irc/tclirc.c:1.8	Sat Dec 29 14:55:31 2001
+++ eggdrop1.7/modules/irc/tclirc.c	Sat Dec 29 14:59:49 2001
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.8 2001/12/29 20:55:31 guppy Exp $
+ * $Id: tclirc.c,v 1.9 2001/12/29 20:59:49 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -163,7 +163,7 @@
 
 static int tcl_isop STDVAR
 {
-  struct chanset_t *chan. *thechan = NULL;
+  struct chanset_t *chan, *thechan = NULL;
   memberlist *mx;
 
   BADARGS(2, 3, " ?nick channel?");
@@ -278,7 +278,7 @@
 
   while (chan && (thechan == NULL || thechan == chan)) {
     for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
-      if (m->user && !rfc_casecmp(m->user->handle, argv[1])) {
+      if (m->user && !irccmp(m->user->handle, argv[1])) {
 	Tcl_AppendResult(irp, "1", NULL);
 	return TCL_OK;
       }
Index: eggdrop1.7/src/botcmd.c
diff -u eggdrop1.7/src/botcmd.c:1.27 eggdrop1.7/src/botcmd.c:1.28
--- eggdrop1.7/src/botcmd.c:1.27	Sun Dec 16 08:48:50 2001
+++ eggdrop1.7/src/botcmd.c	Sat Dec 29 14:59:49 2001
@@ -3,7 +3,7 @@
  *   commands that comes across the botnet
  *   userfile transfer and update commands from sharebots
  *
- * $Id: botcmd.c,v 1.27 2001/12/16 14:48:50 guppy Exp $
+ * $Id: botcmd.c,v 1.28 2001/12/29 20:59:49 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -312,9 +312,15 @@
 static void remote_tell_who(int idx, char *nick, int chan)
 {
   int i = 10, k, l, ok = 0;
-  char s[1024];
+  char s[1024], *realnick;
   struct chanset_t *c;
 
+  realnick = strchr(nick, ':');
+  if (realnick)
+    realnick++;
+  else
+    realnick = nick;
+  putlog(LOG_BOTS, "*", "#%s# who", realnick);
   strcpy(s, "Channels: ");
   for (c = chanset; c; c = c->next)
     if (!channel_secret(c)) {
Index: eggdrop1.7/src/patch.h
diff -u eggdrop1.7/src/patch.h:1.566 eggdrop1.7/src/patch.h:1.567
--- eggdrop1.7/src/patch.h:1.566	Sat Dec 29 14:55:31 2001
+++ eggdrop1.7/src/patch.h	Sat Dec 29 14:59:49 2001
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.566 2001/12/29 20:55:31 guppy Exp $
+ * $Id: patch.h,v 1.567 2001/12/29 20:59:49 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,17 +41,17 @@
  *
  *
  */
-patch("1009659053");		/* current unixtime */
+patch("1009659342");		/* current unixtime */
 /*
  *
  *
  */
-patch("optionalchannelarg2");
+patch("whomsg");
 /*
  *
  *
  */
-patch("optionalchannelarg2");
+patch("whomsg");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list