[cvslog] Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Sat Dec 1 07:47:01 CST 2001


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2001-12-01 13:46:20 UTC
Commited by: Federico Mennite <ite at techmonkeys.org>

Modified files:
     modules/irc/tclirc.c

Log message:

Fixed potential crashes in the getchanhost command. Patch by Matthew Hallacy <poptix at techmonkeys.org>

---------------------- diff included ----------------------
Index: eggdrop1.7/modules/irc/tclirc.c
diff -u eggdrop1.7/modules/irc/tclirc.c:1.1 eggdrop1.7/modules/irc/tclirc.c:1.2
--- eggdrop1.7/modules/irc/tclirc.c:1.1	Sat Oct 27 11:34:50 2001
+++ eggdrop1.7/modules/irc/tclirc.c	Sat Dec  1 07:46:09 2001
@@ -1,7 +1,7 @@
 /*
  * tclirc.c -- part of irc.mod
  *
- * $Id: tclirc.c,v 1.1 2001/10/27 16:34:50 ite Exp $
+ * $Id: tclirc.c,v 1.2 2001/12/01 13:46:09 ite 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