[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.iavalley.cc.ia.us
Sat Mar 17 17:26:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-03-17 23:25:23 UTC
Commited by: guppy

Modified files:
     doc/UPDATES1.6 src/mod/channels.mod/cmdschan.c

Log message:

per's patch for .stick

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/UPDATES1.6
diff -u eggdrop1.6/doc/UPDATES1.6:1.76 eggdrop1.6/doc/UPDATES1.6:1.77
--- eggdrop1.6/doc/UPDATES1.6:1.76	Sat Mar 17 17:19:51 2001
+++ eggdrop1.6/doc/UPDATES1.6	Sat Mar 17 17:25:12 2001
@@ -4,6 +4,7 @@
 
 1.6.4
 Found by  Fixed by  What...
+          dw        cmd_stick activates the bans now
           Abraham   fixed a small remote-boots issue
           ITE       fixed the remote motd bug
 blaster   ITE       fixed a small dns.c bug with hostname resolving
Index: eggdrop1.6/src/mod/channels.mod/cmdschan.c
diff -u eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.40 eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.41
--- eggdrop1.6/src/mod/channels.mod/cmdschan.c:1.40	Tue Jan 16 11:13:21 2001
+++ eggdrop1.6/src/mod/channels.mod/cmdschan.c	Sat Mar 17 17:25:12 2001
@@ -2,7 +2,7 @@
  * cmdschan.c -- part of channels.mod
  *   commands from a user via dcc that cause server interaction
  *
- * $Id: cmdschan.c,v 1.40 2001/01/16 17:13:21 guppy Exp $
+ * $Id: cmdschan.c,v 1.41 2001/03/17 23:25:12 guppy Exp $
  */
 /*
  * Copyright (C) 1997  Robey Pointer
@@ -860,9 +860,10 @@
 static void cmd_stick_yn(int idx, char *par, int yn)
 {
   int i = 0, j;
-  struct chanset_t *chan;
+  struct chanset_t *chan, *achan;
   char *stick_type, s[UHOSTLEN], chname[81];
-
+  module_entry *me;
+  
   stick_type = newsplit(&par);
   strncpyz(s, newsplit(&par), sizeof s);
   strncpyz(chname, newsplit(&par), sizeof chname);
@@ -952,6 +953,9 @@
       putlog(LOG_CMDS, "*", "#%s# %sstick ban %s",
              dcc[idx].nick, yn ? "" : "un", s);
       dprintf(idx, "%stuck ban: %s\n", yn ? "S" : "Uns", s);
+      if ((me = module_find("irc", 0, 0)))
+	for (achan = chanset; achan != NULL; achan = achan->next)
+	  (me->funcs[IRC_RECHECK_CHANNEL])(achan, 1);
       return;
     }
     strncpyz(chname, dcc[idx].u.chat->con_chan, sizeof chname);
@@ -968,6 +972,8 @@
     putlog(LOG_CMDS, "*", "#%s# %sstick ban %s %s", dcc[idx].nick,
            yn ? "" : "un", s, chname);
     dprintf(idx, "%stuck %s ban: %s\n", yn ? "S" : "Uns", chname, s);
+    if ((me = module_find("irc", 0, 0)))
+      (me->funcs[IRC_RECHECK_CHANNEL])(chan, 1);
     return;
   }
   dprintf(idx, "No such ban.\n");
----------------------- End of diff -----------------------



More information about the Changes mailing list