[cvslog] Module eggdrop1.7: Change committed

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


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

Modified files:
     modules/notes/notes.c

Log message:

fixed join_notes to have the proper arguments and also return if the user isn't known (thanks stdarg)

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/notes/notes.c
diff -u eggdrop1.7/modules/notes/notes.c:1.1 eggdrop1.7/modules/notes/notes.c:1.2
--- eggdrop1.7/modules/notes/notes.c:1.1	Sat Oct 27 11:34:51 2001
+++ eggdrop1.7/modules/notes/notes.c	Wed Dec 19 19:08:49 2001
@@ -5,7 +5,7 @@
  *   note cmds
  *   note ignores
  *
- * $Id: notes.c,v 1.1 2001/10/27 16:34:51 ite Exp $
+ * $Id: notes.c,v 1.2 2001/12/20 01:08:49 guppy Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -886,15 +886,18 @@
   return 0;
 }
 
-static void join_notes(char *nick, char *uhost, char *handle, char *par)
+static void join_notes(char *nick, char *uhost, struct userrec *u, char *par)
 {
   int i = -1, j;
   struct chanset_t *chan = chanset;
 
+  if (!u)
+    return;
+
   if (notify_onjoin) { /* drummer */
     for (j = 0; j < dcc_total; j++)
       if ((dcc[j].type->flags & DCT_CHAT)
-	  && (!strcasecmp(dcc[j].nick, handle))) {
+	  && (!strcasecmp(dcc[j].nick, u->handle))) {
 	return;			/* They already know they have notes */
       }
 
@@ -904,7 +907,7 @@
       chan = chan->next;
     }
 
-    i = num_notes(handle);
+    i = num_notes(u->handle);
     if (i) {
       dprintf(DP_HELP, _("NOTICE %s :You have %d note%s waiting on %s.\n"), nick, i, i == 1 ? "" : "s",
 	      botname);
----------------------- End of diff -----------------------



More information about the Changes mailing list