[cvslog] (2003-01-23 03:32:39 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Wed Jan 22 21:33:01 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2003-01-23 03:32:39 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/UPDATES1.6 src/patch.h src/mod/irc.mod/msgcmds.c

Log message:

* Don't tell users to /msg the bot hello when they don't have
  access if learn-users is disabled. Found by Tothwolf.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.449 eggdrop1.6/doc/UPDATES1.6:1.450
--- eggdrop1.6/doc/UPDATES1.6:1.449	Wed Jan 22 20:41:48 2003
+++ eggdrop1.6/doc/UPDATES1.6	Wed Jan 22 21:32:29 2003
@@ -1,10 +1,12 @@
-$Id: UPDATES1.6,v 1.449 2003/01/23 02:41:48 wcc Exp $
+$Id: UPDATES1.6,v 1.450 2003/01/23 03:32:29 wcc Exp $
 
 Changes in Eggdrop: (since v1.6.0)
 ----------------------------------
 
 1.6.14
 Found by  Fixed by  What...
+Tothwolf  Wcc       don't tell users to /msg the bot hello when they don't have
+                    access if learn-users is disabled
           Tothwolf  fixed a few header problems with time.h
           Wcc       cleaned up transfer.mod a bit
           M. Koszik several misc code cleanups and bugfixes
Index: eggdrop1.6/src/mod/irc.mod/msgcmds.c
diff -u eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.36 eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.37
--- eggdrop1.6/src/mod/irc.mod/msgcmds.c:1.36	Wed Jan 22 20:13:29 2003
+++ eggdrop1.6/src/mod/irc.mod/msgcmds.c	Wed Jan 22 21:32:29 2003
@@ -2,7 +2,7 @@
  * msgcmds.c -- part of irc.mod
  *   all commands entered via /MSG
  *
- * $Id: msgcmds.c,v 1.36 2003/01/23 02:13:29 wcc Exp $
+ * $Id: msgcmds.c,v 1.37 2003/01/23 03:32:29 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -533,13 +533,19 @@
 
   if (match_my_nick(nick))
     return 1;
+
   if (!u) {
     if (!quiet_reject) {
-      dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_DONTKNOWYOU);
-      dprintf(DP_HELP, "NOTICE %s :/MSG %s hello\n", nick, botname);
+      if (!learn_users)
+        dprintf(DP_HELP, "NOTICE %s :No access\n", nick);
+      else {
+        dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_DONTKNOWYOU);
+        dprintf(DP_HELP, "NOTICE %s :/MSG %s hello\n", nick, botname);
+      }
     }
     return 0;
   }
+
   if (helpdir[0]) {
     struct flag_record fr = {FR_ANYWH | FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0};
 
@@ -554,6 +560,7 @@
     }
   } else
     dprintf(DP_HELP, "NOTICE %s :%s\n", nick, IRC_NOHELP);
+
   return 1;
 }
 
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.879 eggdrop1.6/src/patch.h:1.880
--- eggdrop1.6/src/patch.h:1.879	Wed Jan 22 20:41:48 2003
+++ eggdrop1.6/src/patch.h	Wed Jan 22 21:32:29 2003
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.879 2003/01/23 02:41:48 wcc Exp $
+ * $Id: patch.h,v 1.880 2003/01/23 03:32:29 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1043289141");		/* current unixtime */
+patch("1043292661");		/* current unixtime */
 /*
  *
  *
  */
-patch("header-fixes");
+patch("hello");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list