[NeoStats-Devel] [Commits] r97 - trunk

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: DNB
Date: Sat Apr  2 23:33:15 2005
New Revision: 97

Modified:
   trunk/ChangeLog
   trunk/lgs_help.c
   trunk/logserv.c
Log:
fix CHANS SET command to correctly find channel

Modified: trunk/ChangeLog
==============================================================================
--- trunk/ChangeLog	(original)
+++ trunk/ChangeLog	Sat Apr  2 23:33:15 2005
@@ -1,5 +1,8 @@
 LogServ ChangeLog
 =============================================================================
+
+- Fix "CHANS SET #chan URL" command check for correct channel name (D)
+
 1.2 * Mark * 17/2/2003
 - We now try to read nick, user, host and realname so these can be configured more 
   easily (M)

Modified: trunk/lgs_help.c
==============================================================================
--- trunk/lgs_help.c	(original)
+++ trunk/lgs_help.c	Sat Apr  2 23:33:15 2005
@@ -42,7 +42,7 @@
 	"Syntax: \2CHANS \37ADD <Channame> <\"public\"/\"private\"> <url>\37\2",
 	"        \2CHANS \37DEL <Channame>\37\2",
 	"        \2CHANS \37LIST\37\2",
-	"        \2CHANS \37SET URL <url>\37\2",
+	"        \2CHANS \37SET <Channame> URL <url>\37\2",
 	"",
 	"Provides Logging Services for Channels on the network",
 	"\2ADD\2 Adds a channel to LogServ for Monitoring. You must specify:",

Modified: trunk/logserv.c
==============================================================================
--- trunk/logserv.c	(original)
+++ trunk/logserv.c	Sat Apr  2 23:33:15 2005
@@ -580,7 +580,7 @@
 			prefmsg(u->nick, s_LogServ, "/msg %s HELP CHANS for more information", s_LogServ);
 			return NS_FAILURE;
 		}
-		hn = hash_lookup(lgschans, av[4]);
+		hn = hash_lookup(lgschans, av[3]);
 		if (hn) {
 			cl = hnode_get(hn);
 		} else {
@@ -591,7 +591,7 @@
 			prefmsg(u->nick, s_LogServ, "Can not find Channel %s in Logging System", av[3]);
 			return NS_FAILURE;
 		}
-		if (!strcasecmp(av[3], "URL")) {
+		if (!strcasecmp(av[4], "URL")) {
 			ircsnprintf(cl->statsurl, MAXPATH, "%s", av[5]);
 			prefmsg(u->nick, s_LogServ, "Changed URL for %s to: %s", cl->channame, cl->statsurl);
 			chanalert(s_LogServ, "%s changed the URL for %s to: %s", u->nick, cl->channame, cl->statsurl);
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.