[NeoStats-Devel] [Commits] r32 - trunk

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: DNB
Date: Thu May 26 22:32:20 2005
New Revision: 32

Modified:
   trunk/seen.c
   trunk/seenserv.c
Log:
change copyright text
fix changes from rev 30 that crashed services when using seen command

Modified: trunk/seen.c
==============================================================================
--- trunk/seen.c	(original)
+++ trunk/seen.c	Thu May 26 22:32:20 2005
@@ -353,7 +353,7 @@
 		if (matchfound) 
 		{
 			seenentriesfound++;
-			if( seenentriesfound == 0 ) 
+			if( seenentriesfound == 1 ) 
 			{
 				sdo = sd;
 				if (checktype == SS_CHECK_NICK)
@@ -364,15 +364,16 @@
 				strlcat( seenentrynick, ", ", SEEN_ENTRY_NICK_SIZE );
 				strlcat( seenentrynick, sd->nick, SEEN_ENTRY_NICK_SIZE );
 			}
+			matchfound = 0;
 		}
 		ln = list_prev(seenlist, ln);
 	}
-	if( matchfound == 0 ) 
+	if( seenentriesfound == 0 ) 
 		return NS_FAILURE;
 	BuildTimeString( ( int )( me.now - sdo->seentime ) );
 	matchednickstr[0] = '\0';
 	if( seenentriesfound > 1 )
-		ircsnprintf(matchednickstr, SS_MESSAGESIZE, "The %d most recent matches are - %s : ", seenentriesfound);
+		ircsnprintf(matchednickstr, SS_MESSAGESIZE, "The %d most recent matches are - %s : ", seenentriesfound, seenentrynick);
 	switch( sdo->seentype )
 	{
 		case SS_CONNECTED:

Modified: trunk/seenserv.c
==============================================================================
--- trunk/seenserv.c	(original)
+++ trunk/seenserv.c	Thu May 26 22:32:20 2005
@@ -25,10 +25,9 @@
 
 /** Copyright info */
 const char *sns_copyright[] = {
-	"Copyright (c) 2004-2005 DeadNotBuried",
-	"Portions Copyright (c) 1999-2005, NeoStats",
-	NULL
-};
+	"Copyright (c) 2005, NeoStats",
+	"http://www.neostats.net/",
+	NULL};
 
 const char *sns_about[] = {
 	"\2Seen Service\2",
@@ -43,7 +42,7 @@
 static bot_cmd sns_commands[]=
 {
 	{"SEEN",	sns_cmd_seenhost,	1,	0,			sns_help_seen},
-	{"SEENNICK",sns_cmd_seennick,	1,	0,			sns_help_seennick},
+	{"SEENNICK",	sns_cmd_seennick,	1,	0,			sns_help_seennick},
 	{"DEL",		sns_cmd_del,		1,	NS_ULEVEL_ADMIN,	sns_help_del},
 	{"STATUS",	sns_cmd_status,		0,	NS_ULEVEL_LOCOPER,	sns_help_status},
 	{NULL,		NULL,			0, 	0,			NULL}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.