[cvslog] Module eggdrop1.6: Change committed

cvslog cvs at tsss.org
Sun Oct 7 09:10:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.6
Commit time: 2001-10-07 14:09:23 UTC
Commited by: Matthew Hallacy <poptix at techmonkeys.org>

Modified files:
     src/mod/irc.mod/tclirc.c

Log message:

Fixed multiple crashes introduced by TaKeDa, test your patches, mmmkay?

---------------------- diff included ----------------------
Index: eggdrop1.6/src/mod/irc.mod/tclirc.c
diff -u eggdrop1.6/src/mod/irc.mod/tclirc.c:1.23 eggdrop1.6/src/mod/irc.mod/tclirc.c:1.24
--- eggdrop1.6/src/mod/irc.mod/tclirc.c:1.23	Sun Sep 23 14:56:06 2001
+++ eggdrop1.6/src/mod/irc.mod/tclirc.c	Sun Oct  7 09:09:12 2001
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.23 2001/09/23 19:56:06 guppy Exp $
+ * $Id: tclirc.c,v 1.24 2001/10/07 14:09:12 poptix Exp $
  */
 /*
  * Copyright (C) 1997 Robey Pointer
@@ -287,7 +287,7 @@
   memberlist *m;
 
   BADARGS(2, 3, " nickname ?channel?");	/* drummer */
-  if (argv[2]) {
+  if (argc > 2) {
     thechan = findchan_by_dname(argv[2]);
     if (!thechan) {
       Tcl_AppendResult(irp, "illegal channel: ", argv[2], NULL);
@@ -606,7 +606,7 @@
   struct userrec *u;
 
   BADARGS(2, 3, " handle ?channel?");	/* drummer */
-  if (argv[2]) {
+  if (argc > 2) {
     chan = findchan_by_dname(argv[2]);
     thechan = chan;
     if (chan == NULL) {
@@ -639,7 +639,7 @@
   struct userrec *u;
 
   BADARGS(2, 3, " nick ?channel?");	/* drummer */
-  if (argv[2]) {
+  if (argc > 2) {
     chan = findchan_by_dname(argv[2]);
     thechan = chan;
     if (chan == NULL) {
----------------------- End of diff -----------------------



More information about the Changes mailing list