[cvslog] (2002-07-25 21:03:33 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Thu Jul 25 16:04:01 CST 2002


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2002-07-25 21:03:33 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     src/patch.h src/mod/irc.mod/irc.c

Log message:

Updated status_log() for halfop support.

---------------------- diff included ----------------------
Index: eggdrop1.6/src/mod/irc.mod/irc.c
diff -u eggdrop1.6/src/mod/irc.mod/irc.c:1.72 eggdrop1.6/src/mod/irc.mod/irc.c:1.73
--- eggdrop1.6/src/mod/irc.mod/irc.c:1.72	Thu Jul 18 14:01:45 2002
+++ eggdrop1.6/src/mod/irc.mod/irc.c	Thu Jul 25 16:03:23 2002
@@ -2,7 +2,7 @@
  * irc.c -- part of irc.mod
  *   support for channels within the bot
  *
- * $Id: irc.c,v 1.72 2002/07/18 19:01:45 guppy Exp $
+ * $Id: irc.c,v 1.73 2002/07/25 21:03:23 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -485,7 +485,7 @@
   memberlist *m;
   struct chanset_t *chan;
   char s[20], s2[20];
-  int chops, voice, nonops, bans, invites, exempts;
+  int chops, halfops, voice, nonops, bans, invites, exempts;
 
   if (!server_online)
     return;
@@ -495,13 +495,16 @@
         !channel_inactive(chan)) {
       chops = 0;
       voice = 0;
+      halfops = 0;
       for (m = chan->channel.member; m && m->nick[0]; m = m->next) {
 	if (chan_hasop(m))
 	  chops++;
+        else if (chan_hasvoice(m))
+          halfops++;
 	else if (chan_hasvoice(m))
 	  voice++;
       }
-      nonops = (chan->channel.members - (chops + voice));
+      nonops = (chan->channel.members - (chops + voice + halfops));
 
       for (bans = 0, b = chan->channel.ban; b->mask[0]; b = b->next)
 	bans++;
@@ -514,10 +517,11 @@
       sprintf(s2, "%d", invites);
 
       putlog(LOG_MISC, chan->dname,
-	     "%s%-10s (%s) : [m/%d o/%d v/%d n/%d b/%d e/%s I/%s]",
-             me_op(chan) ? "@" : me_voice(chan) ? "+" : "", chan->dname,
-             getchanmode(chan), chan->channel.members, chops, voice, nonops,
-	     bans, use_exempts ? s : "-", use_invites ? s2 : "-");
+             "%c%s (%s) : [m/%d o/%d h/%d v/%d n/%d b/%d e/%s I/%s]",
+             me_op(chan) ? '@' : me_voice(chan) ? '+' :
+             me_halfop(chan) ? '%' : '', chan->dname, getchanmode(chan),
+             chan->channel.members, chops, halfops, voice, nonops, bans,
+             use_exempts ? s : "-", use_invites ? s2 : "-");
     }
   }
 }
Index: eggdrop1.6/src/patch.h
diff -u eggdrop1.6/src/patch.h:1.788 eggdrop1.6/src/patch.h:1.789
--- eggdrop1.6/src/patch.h:1.788	Thu Jul 25 15:44:55 2002
+++ eggdrop1.6/src/patch.h	Thu Jul 25 16:03:22 2002
@@ -10,7 +10,7 @@
  * statement, leave the rest of the file alone, this allows better
  * overlapping patches.
  *
- * $Id: patch.h,v 1.788 2002/07/25 20:44:55 wcc Exp $
+ * $Id: patch.h,v 1.789 2002/07/25 21:03:22 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -41,12 +41,12 @@
  *
  *
  */
-patch("1027629795");		/* current unixtime */
+patch("1027630828");		/* current unixtime */
 /*
  *
  *
  */
-patch("halfopdocs2");
+patch("halfop-support8");
 /*
  *
  *
----------------------- End of diff -----------------------



More information about the Changes mailing list