[cvslog] (2004-04-06 06:56:48 UTC) Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Tue Apr 6 00:56:48 CST 2004


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2004-04-06 06:56:48 UTC
Commited by: Will Buckner <wcc at techmonkeys.org>

Modified files:
     doc/tcl-commands.doc src/cmds.c src/dcc.c src/eggdrop.h
     src/language.c src/main.c src/match.c src/misc.c src/modules.c
     src/rfc1459.c src/tcldcc.c src/tclhash.c src/tclmisc.c
     src/tcluser.c src/mod/share.mod/share.c

Log message:

* Some trim-trailing-space/tab2space stuff.

---------------------- diff included ----------------------
Index: eggdrop1.6/doc/tcl-commands.doc
diff -u eggdrop1.6/doc/tcl-commands.doc:1.107 eggdrop1.6/doc/tcl-commands.doc:1.108
--- eggdrop1.6/doc/tcl-commands.doc:1.107	Mon Jan 12 19:30:25 2004
+++ eggdrop1.6/doc/tcl-commands.doc	Tue Apr  6 01:56:38 2004
@@ -1,4 +1,4 @@
-$Id: tcl-commands.doc,v 1.107 2004/01/13 01:30:25 wcc Exp $
+$Id: tcl-commands.doc,v 1.108 2004/04/06 06:56:38 wcc Exp $
 
 Eggdrop Tcl Commands
 Last revised: January 12, 2004
@@ -1795,13 +1795,13 @@
 
          Description: previous versions of Eggdrop required a special compile
            option to enable this binding, but it's now standard. The keyword
-	   is either a numeric, like "368", or a keyword, such as "PRIVMSG".
-	   from will be the server name or the source user (depending on
-	   the keyword); flags are ignored. The order of the arguments is
-	   identical to the order that the IRC server sends to the bot. The
-	   pre-processing  only splits it apart enough to determine the
-	   keyword. If the proc returns 1, Eggdrop will not process the line
-	   any further (this could cause unexpected behavior in some cases).
+           is either a numeric, like "368", or a keyword, such as "PRIVMSG".
+           from will be the server name or the source user (depending on
+           the keyword); flags are ignored. The order of the arguments is
+           identical to the order that the IRC server sends to the bot. The
+           pre-processing  only splits it apart enough to determine the
+           keyword. If the proc returns 1, Eggdrop will not process the line
+           any further (this could cause unexpected behavior in some cases).
          Module: server
 
     (18) BOT
Index: eggdrop1.6/src/cmds.c
diff -u eggdrop1.6/src/cmds.c:1.106 eggdrop1.6/src/cmds.c:1.107
--- eggdrop1.6/src/cmds.c:1.106	Sat Jan 17 20:11:39 2004
+++ eggdrop1.6/src/cmds.c	Tue Apr  6 01:56:38 2004
@@ -3,7 +3,7 @@
  *   commands from a user via dcc
  *   (split in 2, this portion contains no-irc commands)
  *
- * $Id: cmds.c,v 1.106 2004/01/18 02:11:39 wcc Exp $
+ * $Id: cmds.c,v 1.107 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -800,7 +800,7 @@
     userlist = adduser(userlist, handle, "none", "-", USER_BOT);
     u1 = get_user_by_handle(userlist, handle);
     bi = user_malloc(sizeof(struct bot_addr));
- 
+
     q = strchr(addr, ':');
     if (!q) {
       bi->address = user_malloc(strlen(addr) + 1);
Index: eggdrop1.6/src/dcc.c
diff -u eggdrop1.6/src/dcc.c:1.76 eggdrop1.6/src/dcc.c:1.77
--- eggdrop1.6/src/dcc.c:1.76	Sun Mar 14 07:30:21 2004
+++ eggdrop1.6/src/dcc.c	Tue Apr  6 01:56:38 2004
@@ -4,7 +4,7 @@
  *   disconnect on a dcc socket
  *   ...and that's it!  (but it's a LOT)
  *
- * $Id: dcc.c,v 1.76 2004/03/14 13:30:21 wcc Exp $
+ * $Id: dcc.c,v 1.77 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -509,7 +509,7 @@
 
   if (!password)
     return 1;
-  
+
   MD5_Init(&md5context);
 
   egg_snprintf(digest_string, 33, "<%x%x@", getpid(),
Index: eggdrop1.6/src/eggdrop.h
diff -u eggdrop1.6/src/eggdrop.h:1.55 eggdrop1.6/src/eggdrop.h:1.56
--- eggdrop1.6/src/eggdrop.h:1.55	Thu Jan  8 23:56:36 2004
+++ eggdrop1.6/src/eggdrop.h	Tue Apr  6 01:56:38 2004
@@ -4,7 +4,7 @@
  *
  *   IF YOU ALTER THIS FILE, YOU NEED TO RECOMPILE THE BOT.
  *
- * $Id: eggdrop.h,v 1.55 2004/01/09 05:56:36 wcc Exp $
+ * $Id: eggdrop.h,v 1.56 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -76,7 +76,7 @@
 
 /* Language stuff */
 #define LANGDIR  "./language" /* language file directory                   */
-#define BASELANG "english"    /* language which always gets loaded before 
+#define BASELANG "english"    /* language which always gets loaded before
                                  all other languages. You do not want to
                                  change this.                              */
 
Index: eggdrop1.6/src/language.c
diff -u eggdrop1.6/src/language.c:1.23 eggdrop1.6/src/language.c:1.24
--- eggdrop1.6/src/language.c:1.23	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/language.c	Tue Apr  6 01:56:38 2004
@@ -2,7 +2,7 @@
  * language.c -- handles:
  *   language support code
  *
- * $Id: language.c,v 1.23 2004/01/09 05:56:37 wcc Exp $
+ * $Id: language.c,v 1.24 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -652,7 +652,7 @@
 
   buf = nmalloc(strlen(argv[1]) + 1);
   strcpy(buf, argv[1]);
-  
+
   if (!split_lang(buf, &lang, &section)) {
     Tcl_AppendResult(irp, "Invalid parameter", NULL);
     nfree(buf);
Index: eggdrop1.6/src/main.c
diff -u eggdrop1.6/src/main.c:1.105 eggdrop1.6/src/main.c:1.106
--- eggdrop1.6/src/main.c:1.105	Tue Jan 13 04:21:00 2004
+++ eggdrop1.6/src/main.c	Tue Apr  6 01:56:38 2004
@@ -5,7 +5,7 @@
  *   command line arguments
  *   context and assert debugging
  *
- * $Id: main.c,v 1.105 2004/01/13 10:21:00 wcc Exp $
+ * $Id: main.c,v 1.106 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -50,9 +50,9 @@
 #  endif
 #endif
 
-#ifdef STOP_UAC				/* osf/1 complains a lot */
+#ifdef STOP_UAC                         /* osf/1 complains a lot */
 #  include <sys/sysinfo.h>
-#  define UAC_NOPRINT 0x00000001	/* Don't report unaligned fixups */
+#  define UAC_NOPRINT 0x00000001        /* Don't report unaligned fixups */
 #endif
 
 #include "chan.h"
@@ -89,25 +89,25 @@
 char egg_version[1024] = "1.6.16";
 int egg_numver = 1061600;
 
-char notify_new[121] = "";	/* Person to send a note to for new users */
-int default_flags = 0;		/* Default user flags                     */
-int default_uflags = 0;		/* Default user-definied flags            */
-
-int backgrd = 1;	/* Run in the background?                        */
-int con_chan = 0;	/* Foreground: constantly display channel stats? */
-int term_z = 0;		/* Foreground: use the terminal as a partyline?  */
+char notify_new[121] = "";      /* Person to send a note to for new users */
+int default_flags = 0;          /* Default user flags                     */
+int default_uflags = 0;         /* Default user-definied flags            */
+
+int backgrd = 1;        /* Run in the background?                        */
+int con_chan = 0;       /* Foreground: constantly display channel stats? */
+int term_z = 0;         /* Foreground: use the terminal as a partyline?  */
 int use_stderr = 1;     /* Send stuff to stderr instead of logfiles?     */
 
-char configfile[121] = "eggdrop.conf";	/* Default config file name */
-char pid_file[120];			/* Name of the pid file     */
-char helpdir[121] = "help/";		/* Directory of help files  */
-char textdir[121] = "text/";		/* Directory for text files */
-
-int keep_all_logs = 0;			/* Never erase logfiles?    */
-char logfile_suffix[21] = ".%d%b%Y";	/* Format of logfile suffix */
-int switch_logfiles_at = 300;		/* When to switch logfiles  */
+char configfile[121] = "eggdrop.conf";  /* Default config file name */
+char pid_file[120];                     /* Name of the pid file     */
+char helpdir[121] = "help/";            /* Directory of help files  */
+char textdir[121] = "text/";            /* Directory for text files */
+
+int keep_all_logs = 0;                  /* Never erase logfiles?    */
+char logfile_suffix[21] = ".%d%b%Y";    /* Format of logfile suffix */
+int switch_logfiles_at = 300;           /* When to switch logfiles  */
 
-time_t online_since;	/* time that the bot was started */
+time_t online_since;    /* time that the bot was started */
 
 int make_userfile = 0; /* Using bot in userfile-creation mode? */
 char owner[121] = "";  /* Permanent owner(s) of the bot        */
Index: eggdrop1.6/src/match.c
diff -u eggdrop1.6/src/match.c:1.10 eggdrop1.6/src/match.c:1.11
--- eggdrop1.6/src/match.c:1.10	Mon Feb  9 20:10:50 2004
+++ eggdrop1.6/src/match.c	Tue Apr  6 01:56:38 2004
@@ -2,23 +2,23 @@
  * match.c
  *   wildcard matching functions
  *
- * $Id: match.c,v 1.10 2004/02/10 02:10:50 wcc Exp $
+ * $Id: match.c,v 1.11 2004/04/06 06:56:38 wcc Exp $
  *
  * Once this code was working, I added support for % so that I could
  * use the same code both in Eggdrop and in my IrcII client.
  * Pleased with this, I added the option of a fourth wildcard, ~,
  * which matches varying amounts of whitespace (at LEAST one space,
  * though, for sanity reasons).
- * 
+ *
  * This code would not have been possible without the prior work and
  * suggestions of various sourced.  Special thanks to Robey for
  * all his time/help tracking down bugs and his ever-helpful advice.
- * 
+ *
  * 04/09:  Fixed the "*\*" against "*a" bug (caused an endless loop)
- * 
+ *
  *   Chris Fuller  (aka Fred1 at IRC & Fwitz at IRC)
  *     crf at cfox.bchs.uh.edu
- * 
+ *
  * I hereby release this code into the public domain
  *
  */
Index: eggdrop1.6/src/misc.c
diff -u eggdrop1.6/src/misc.c:1.69 eggdrop1.6/src/misc.c:1.70
--- eggdrop1.6/src/misc.c:1.69	Fri Jan  9 06:07:22 2004
+++ eggdrop1.6/src/misc.c	Tue Apr  6 01:56:38 2004
@@ -7,7 +7,7 @@
  *   help system
  *   motd display and %var substitution
  *
- * $Id: misc.c,v 1.69 2004/01/09 12:07:22 wcc Exp $
+ * $Id: misc.c,v 1.70 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1359,7 +1359,7 @@
   dprintf(idx, "\n");
 }
 
-/* Show banner to telnet user 
+/* Show banner to telnet user
  */
 void show_banner(int idx)
 {
@@ -1518,7 +1518,7 @@
   (void) strchr_unescape(str, 0, esc_char);
 }
 
-/* Kills the bot. s1 is the reason shown to other bots, 
+/* Kills the bot. s1 is the reason shown to other bots,
  * s2 the reason shown on the partyline. (Sup 25Jul2001)
  */
 void kill_bot(char *s1, char *s2)
Index: eggdrop1.6/src/mod/share.mod/share.c
diff -u eggdrop1.6/src/mod/share.mod/share.c:1.79 eggdrop1.6/src/mod/share.mod/share.c:1.80
--- eggdrop1.6/src/mod/share.mod/share.c:1.79	Mon Feb  9 19:57:13 2004
+++ eggdrop1.6/src/mod/share.mod/share.c	Tue Apr  6 01:56:38 2004
@@ -1,7 +1,7 @@
 /*
  * share.c -- part of share.mod
  *
- * $Id: share.c,v 1.79 2004/02/10 01:57:13 wcc Exp $
+ * $Id: share.c,v 1.80 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -1453,7 +1453,7 @@
           /* ^ send it again in case they missed it */
         /* If it's a share bot that hasnt been sharing, ask again */
       } else if (!(dcc[i].status & STAT_SHARE)) {
-	/* Patched from original source by giusc at gbss.it <20040207> */
+        /* Patched from original source by giusc at gbss.it <20040207> */
         if (dcc[i].user && (bot_flags(dcc[i].user) & BOT_AGGRESSIVE))  {
           dprintf(i, "s u?\n");
           dcc[i].status |= STAT_OFFERED;
@@ -2118,7 +2118,7 @@
     dprintf(idx, "    Private owners: %s\n", (private_global ||
             (private_globals_bitmask() & USER_OWNER)) ? "yes" : "no");
     dprintf(idx, "    Allow resync: %s\n", allow_resync ? "yes" : "no");
-            
+
     for (i = 0; i < dcc_total; i++) {
       if (dcc[i].type == &DCC_BOT) {
         if (dcc[i].status & STAT_GETTING) {
Index: eggdrop1.6/src/modules.c
diff -u eggdrop1.6/src/modules.c:1.93 eggdrop1.6/src/modules.c:1.94
--- eggdrop1.6/src/modules.c:1.93	Mon Jan 12 01:49:17 2004
+++ eggdrop1.6/src/modules.c	Tue Apr  6 01:56:38 2004
@@ -1,25 +1,25 @@
 /*
  * modules.c -- handles:
  *   support for modules in eggdrop
- * 
+ *
  * by Darrin Smith (beldin at light.iinet.net.au)
- * 
- * $Id: modules.c,v 1.93 2004/01/12 07:49:17 wcc Exp $
+ *
+ * $Id: modules.c,v 1.94 2004/04/06 06:56:38 wcc Exp $
  */
-/* 
+/*
  * Copyright (C) 1997 Robey Pointer
  * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
- * 
+ *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
  * as published by the Free Software Foundation; either version 2
  * of the License, or (at your option) any later version.
- * 
+ *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
- * 
+ *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
Index: eggdrop1.6/src/rfc1459.c
diff -u eggdrop1.6/src/rfc1459.c:1.9 eggdrop1.6/src/rfc1459.c:1.10
--- eggdrop1.6/src/rfc1459.c:1.9	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/rfc1459.c	Tue Apr  6 01:56:38 2004
@@ -1,27 +1,27 @@
 /*
  * rfc1459.c
- * 
- * $Id: rfc1459.c,v 1.9 2004/01/09 05:56:37 wcc Exp $
+ *
+ * $Id: rfc1459.c,v 1.10 2004/04/06 06:56:38 wcc Exp $
  */
-/* 
+/*
  * Copyright (C) 1990 Jarkko Oikarinen
  * Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
- * 
+ *
  * This code was more or less cloned from the ircd-hybrid 5.3 source.
  * The original code was written by Otto Harkoonen and even though it
  * it not entirely in synch with section 2.2 of RFC1459 in that it
  * additionally defines carat as an uppercase version of tilde, it's
  * what is in the servers themselves so we're going with it this way.
- * 
+ *
  * If for some reason someone who maintains the source for ircd decides
  * to change the code to be completely RFC compliant, the change here
  * would be absolutely miniscule.
- * 
+ *
  * BTW, since carat characters are allowed in nicknames and tildes are
  * not, I stronly suggest that people convert to uppercase when doing
  * comparisons or creation of hash elements (which tcl laughably calls
  * arrays) to avoid making entries with impossible nicknames in them.
- * 
+ *
  * --+ Dagmar
  */
 
Index: eggdrop1.6/src/tcldcc.c
diff -u eggdrop1.6/src/tcldcc.c:1.50 eggdrop1.6/src/tcldcc.c:1.51
--- eggdrop1.6/src/tcldcc.c:1.50	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/tcldcc.c	Tue Apr  6 01:56:38 2004
@@ -2,7 +2,7 @@
  * tcldcc.c -- handles:
  *   Tcl stubs for the dcc commands
  *
- * $Id: tcldcc.c,v 1.50 2004/01/09 05:56:37 wcc Exp $
+ * $Id: tcldcc.c,v 1.51 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -112,7 +112,7 @@
   int idx;
 
   BADARGS(3, 3, " idx command");
-  
+
   idx = findidx(atoi(argv[1]));
   if (idx >= 0 && (dcc[idx].type->flags & DCT_SIMUL)) {
     int l = strlen(argv[2]);
@@ -327,7 +327,7 @@
   module_entry *me;
 
   BADARGS(2, 4, " idx ?strip-flags?");
-  
+
   i = findidx(atoi(argv[1]));
   if (i < 0 || dcc[i].type != &DCC_CHAT) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -439,7 +439,7 @@
   void *hold;
 
   BADARGS(3, 3, " idx command");
-  
+
   idx = findidx(atoi(argv[1]));
   if (idx < 0) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -496,7 +496,7 @@
   if ((dcc[idx].sock == STDOUT) && !backgrd) /* Don't kill terminal socket */
     return TCL_OK;
 
-  
+
   if (dcc[idx].type->flags & DCT_CHAT) { /* Make sure 'whom' info is updated */
     chanout_but(idx, dcc[idx].u.chat->channel, "*** %s has left the %s%s%s\n",
                 dcc[idx].nick, dcc[idx].u.chat ? "channel" : "partyline",
@@ -520,7 +520,7 @@
   char msg[401];
 
   BADARGS(3, 3, " botnick message");
-  
+
   i = nextbot(argv[1]);
   if (i < 0) {
     Tcl_AppendResult(irp, "bot is not on the botnet", NULL);
@@ -548,7 +548,7 @@
   int idx;
 
   BADARGS(2, 2, " idx");
-  
+
   idx = findidx(atoi(argv[1]));
   if (idx < 0) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -564,7 +564,7 @@
   int i;
 
   BADARGS(2, 2, " bot");
-  
+
   i = nextbot(argv[1]);
   if (i < 0)
     Tcl_AppendResult(irp, "0", NULL);
@@ -732,7 +732,7 @@
   char s[21];
 
   BADARGS(2, 2, " idx");
-  
+
   idx = findidx(atoi(argv[1]));
   if (idx < 0) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -750,7 +750,7 @@
   int idx;
 
   BADARGS(2, 2, " idx");
-  
+
   idx = findidx(atol(argv[1]));
   if (idx < 0 || dcc[idx].type != &DCC_CHAT) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -768,7 +768,7 @@
   int idx;
 
   BADARGS(3, 3, " idx message");
-  
+
   idx = findidx(atol(argv[1]));
   if (idx < 0 || dcc[idx].type != &DCC_CHAT) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
@@ -813,7 +813,7 @@
   char bot[HANDLEN + 1];
 
   BADARGS(2, 3, " bot ?comment?");
-  
+
   strncpyz(bot, argv[1], sizeof bot);
   i = nextbot(bot);
   if (i < 0)
@@ -837,7 +837,7 @@
   char s[81];
 
   BADARGS(3, 3, " hostname port");
-  
+
   if (dcc_total == max_dcc) {
     Tcl_AppendResult(irp, "out of dcc table space", NULL);
     return TCL_ERROR;
@@ -881,7 +881,7 @@
   struct portmap *pmap = NULL, *pold = NULL;
 
   BADARGS(3, 5, " port type ?mask?/?proc ?flag??");
-  
+
   port = realport = atoi(argv[1]);
   for (pmap = root; pmap; pold = pmap, pmap = pmap->next)
     if (pmap->realport == port) {
@@ -999,7 +999,7 @@
   int i, ok = 0;
 
   BADARGS(2, 3, " user at bot ?reason?");
-  
+
   strncpyz(who, argv[1], sizeof who);
 
   if (strchr(who, '@') != NULL) {
Index: eggdrop1.6/src/tclhash.c
diff -u eggdrop1.6/src/tclhash.c:1.46 eggdrop1.6/src/tclhash.c:1.47
--- eggdrop1.6/src/tclhash.c:1.46	Mon Apr  5 18:35:20 2004
+++ eggdrop1.6/src/tclhash.c	Tue Apr  6 01:56:38 2004
@@ -7,7 +7,7 @@
  *   (non-Tcl) procedure lookups for msg/dcc/file commands
  *   (Tcl) binding internal procedures to msg/dcc/file commands
  *
- * $Id: tclhash.c,v 1.46 2004/04/05 23:35:20 wcc Exp $
+ * $Id: tclhash.c,v 1.47 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -512,7 +512,7 @@
   Function F = (Function) cd;
 
   BADARGS(4, 4, " from to args");
-  
+
   CHECKVALIDITY(builtin_3char);
   F(argv[1], argv[2], argv[3]);
   return TCL_OK;
@@ -523,7 +523,7 @@
   Function F = (Function) cd;
 
   BADARGS(3, 3, " nick msg");
-  
+
   CHECKVALIDITY(builtin_2char);
   F(argv[1], argv[2]);
   return TCL_OK;
@@ -534,7 +534,7 @@
   Function F = (Function) cd;
 
   BADARGS(6, 6, " min hrs dom mon year");
-  
+
   CHECKVALIDITY(builtin_5int);
   F(atoi(argv[1]), atoi(argv[2]), atoi(argv[3]), atoi(argv[4]), atoi(argv[5]));
   return TCL_OK;
@@ -545,7 +545,7 @@
   Function F = (Function) cd;
 
   BADARGS(2, 2, " handle");
-  
+
   CHECKVALIDITY(builtin_char);
   F(argv[1]);
   return TCL_OK;
@@ -556,7 +556,7 @@
   Function F = (Function) cd;
 
   BADARGS(3, 3, " bot nick sock");
-  
+
   CHECKVALIDITY(builtin_chpt);
   F(argv[1], argv[2], atoi(argv[3]));
   return TCL_OK;
@@ -567,7 +567,7 @@
   Function F = (Function) cd;
 
   BADARGS(6, 6, " bot nick chan# flag&sock host");
-  
+
   CHECKVALIDITY(builtin_chjn);
   F(argv[1], argv[2], atoi(argv[3]), argv[4][0],
     argv[4][0] ? atoi(argv[4] + 1) : 0, argv[5]);
@@ -581,7 +581,7 @@
   char *r;
 
   BADARGS(3, 3, " idx args");
-  
+
   CHECKVALIDITY(builtin_idxchar);
   idx = findidx(atoi(argv[1]));
   if (idx < 0) {
@@ -611,7 +611,7 @@
   int idx;
 
   BADARGS(3, 3, " handle idx");
-  
+
   CHECKVALIDITY(builtin_charidx);
   idx = findanyidx(atoi(argv[2]));
   if (idx < 0) {
@@ -629,7 +629,7 @@
   int ch;
 
   BADARGS(4, 4, " handle idx text");
-  
+
   CHECKVALIDITY(builtin_chat);
   ch = atoi(argv[2]);
   F(argv[1], ch, argv[3]);
@@ -642,7 +642,7 @@
   Function F = (Function) cd;
 
   BADARGS(4, 4, " hand idx param");
-  
+
   idx = findidx(atoi(argv[2]));
   if (idx < 0) {
     Tcl_AppendResult(irp, "invalid idx", NULL);
Index: eggdrop1.6/src/tclmisc.c
diff -u eggdrop1.6/src/tclmisc.c:1.47 eggdrop1.6/src/tclmisc.c:1.48
--- eggdrop1.6/src/tclmisc.c:1.47	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/tclmisc.c	Tue Apr  6 01:56:38 2004
@@ -2,7 +2,7 @@
  * tclmisc.c -- handles:
  *   Tcl stubs for everything else
  *
- * $Id: tclmisc.c,v 1.47 2004/01/09 05:56:37 wcc Exp $
+ * $Id: tclmisc.c,v 1.48 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -76,7 +76,7 @@
   char s[151];
 
   BADARGS(1, 4, " ?logModes channel logFile?");
-  
+
   if (argc == 1) {
     /* They just want a list of the logfiles and modes */
     for (i = 0; i < max_logs; i++)
@@ -141,7 +141,7 @@
   char logtext[501];
 
   BADARGS(2, 2, " text");
-  
+
   strncpyz(logtext, argv[1], sizeof logtext);
   putlog(LOG_MISC, "*", "%s", logtext);
   return TCL_OK;
@@ -152,7 +152,7 @@
   char logtext[501];
 
   BADARGS(2, 2, " text");
-  
+
   strncpyz(logtext, argv[1], sizeof logtext);
   putlog(LOG_CMDS, "*", "%s", logtext);
   return TCL_OK;
@@ -163,7 +163,7 @@
   char logtext[501];
 
   BADARGS(2, 2, " text");
-  
+
   strncpyz(logtext, argv[1], sizeof logtext);
   putlog(LOG_FILES, "*", "%s", logtext);
   return TCL_OK;
@@ -175,7 +175,7 @@
   char logtext[501];
 
   BADARGS(4, 4, " level channel text");
-  
+
   lev = logmodes(argv[1]);
   if (!lev) {
     Tcl_AppendResult(irp, "No valid log-level given", NULL);
@@ -290,7 +290,7 @@
 static int tcl_killutimer STDVAR
 {
   BADARGS(2, 2, " timerID");
-  
+
   if (strncmp(argv[1], "timer", 5)) {
     Tcl_AppendResult(irp, "argument is not a timerID", NULL);
     return TCL_ERROR;
@@ -372,7 +372,7 @@
   time_t now2 = time(NULL);
 
   BADARGS(1, 1, "");
-  
+
   egg_snprintf(s, sizeof s, "%lu", (unsigned long) now2);
   Tcl_AppendResult(irp, s, NULL);
   return TCL_OK;
@@ -384,7 +384,7 @@
   char s[25];
 
   BADARGS(2, 2, " unixtime");
-  
+
   tt = (time_t) atol(argv[1]);
   strncpyz(s, ctime(&tt), sizeof s);
   Tcl_AppendResult(irp, s, NULL);
@@ -417,7 +417,7 @@
   char s[16];
 
   BADARGS(1, 1, "");
-   
+
   egg_snprintf(s, sizeof s, "%lu", iptolong(getmyip()));
   Tcl_AppendResult(irp, s, NULL);
   return TCL_OK;
@@ -446,7 +446,7 @@
   char s[5], from[NOTENAMELEN + 1], to[NOTENAMELEN + 1], msg[451];
 
   BADARGS(4, 4, " from to message");
-  
+
   strncpyz(from, argv[1], sizeof from);
   strncpyz(to, argv[2], sizeof to);
   strncpyz(msg, argv[3], sizeof msg);
@@ -461,7 +461,7 @@
   struct flag_record fr = { FR_GLOBAL | FR_CHAN, 0, 0, 0, 0, 0 };
 
   BADARGS(3, 3, " nickname filename");
- 
+
   strncpyz(nick, argv[1], sizeof nick);
   get_user_flagrec(get_user_by_nick(nick), &fr, NULL);
   showhelp(argv[1], argv[2], &fr, HELP_TEXT);
@@ -474,7 +474,7 @@
   struct flag_record fr = { FR_GLOBAL | FR_CHAN | FR_ANYWH, 0, 0, 0, 0, 0 };
 
   BADARGS(3, 3, " idx filename");
- 
+
   i = atoi(argv[1]);
   idx = findidx(i);
   if (idx < 0) {
@@ -615,7 +615,7 @@
 static int tcl_callevent STDVAR
 {
   BADARGS(2, 2, " event");
-  
+
   check_tcl_event(argv[1]);
   return TCL_OK;
 }
@@ -630,7 +630,7 @@
 #else
 static int tcl_md5 STDVAR
 {
-#endif				/* USE_TCL_OBJ */
+#endif /* USE_TCL_OBJ */
   MD5_CTX md5context;
   char digest_string[33], *string;
   unsigned char digest[16];
@@ -648,7 +648,7 @@
 #  endif /* USE_TCL_BYTE_ARRAYS */
 #else /* USE_TCL_OBJ */
   BADARGS(2, 2, " string");
-  
+
   string = argv[1];
   len = strlen(argv[1]);
 #endif /* USE_TCL_OBJ */
Index: eggdrop1.6/src/tcluser.c
diff -u eggdrop1.6/src/tcluser.c:1.37 eggdrop1.6/src/tcluser.c:1.38
--- eggdrop1.6/src/tcluser.c:1.37	Thu Jan  8 23:56:37 2004
+++ eggdrop1.6/src/tcluser.c	Tue Apr  6 01:56:38 2004
@@ -2,7 +2,7 @@
  * tcluser.c -- handles:
  *   Tcl stubs for the user-record-oriented commands
  *
- * $Id: tcluser.c,v 1.37 2004/01/09 05:56:37 wcc Exp $
+ * $Id: tcluser.c,v 1.38 2004/04/06 06:56:38 wcc Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -70,7 +70,7 @@
   struct userrec *u;
 
   BADARGS(3, 3, " handle passwd");
-  
+
   Tcl_AppendResult(irp, ((u = get_user_by_handle(userlist, argv[1])) &&
                    u_pass_match(u, argv[2])) ? "1" : "0", NULL);
   return TCL_OK;
@@ -83,7 +83,7 @@
   struct userrec *u;
 
   BADARGS(2, 4, " handle ?changes? ?channel?");
-  
+
   if ((argv[1][0] == '*') || !(u = get_user_by_handle(userlist, argv[1]))) {
     Tcl_AppendResult(irp, "*", NULL);
     return TCL_OK;
@@ -158,7 +158,7 @@
   struct userrec *u;
 
   BADARGS(2, 4, " bot-handle ?changes? ?channel?");
- 
+
   u = get_user_by_handle(userlist, argv[1]);
   if ((argv[1][0] == '*') || !u || !(u->flags & USER_BOT)) {
     Tcl_AppendResult(irp, "*", NULL);
@@ -258,7 +258,7 @@
 static int tcl_adduser STDVAR
 {
   BADARGS(2, 3, " handle ?hostmask?");
-  
+
   if (strlen(argv[1]) > HANDLEN)
     argv[1][HANDLEN] = 0;
   if ((argv[1][0] == '*') || get_user_by_handle(userlist, argv[1]))
@@ -387,7 +387,7 @@
   int x = 1, i;
 
   BADARGS(3, 3, " oldnick newnick");
-  
+
   u = get_user_by_handle(userlist, argv[1]);
   if (!u)
     x = 0;
@@ -531,7 +531,7 @@
   module_entry *me;
 
   BADARGS(3, 999, " handle type ?setting....?");
-  
+
   if (!(et = find_entry_type(argv[2]))) {
     Tcl_AppendResult(irp, "No such info type: ", argv[2], NULL);
     return TCL_ERROR;
----------------------- End of diff -----------------------



More information about the Changes mailing list