Compare commits

...
This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.

3 commits
3.0 ... master

Author SHA1 Message Date
DNB
b2cc077893 fix CHANS SET command to correctly find channel 2005-04-02 15:33:15 +00:00
Fish
2c6c2f0280 bump version 2005-03-01 12:45:04 +00:00
Fish
45e248c9c6 fix error on newer compilers 2005-02-27 06:46:27 +00:00
5 changed files with 334 additions and 200 deletions

View file

@ -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)

521
configure vendored

File diff suppressed because it is too large Load diff

View file

@ -3,14 +3,14 @@ AC_INIT(logserv.c)
AC_CONFIG_HEADER(modconfig.h)
PACKAGE=LogServ
MODULE_MAJOR=1
MODULE_MINOR=2
MODULE_MINOR=3
VERSION=$MODULE_MAJOR.$MODULE_MINOR
AC_DEFINE_UNQUOTED(MODULE_VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(MODULE_MAJOR, "$MODULE_MAJOR")
AC_DEFINE_UNQUOTED(MODULE_MINOR, "$MODULE_MINOR")
DIRINST=~/NeoStats/
AC_PREFIX_DEFAULT(~/NeoStats/)
CFLAGS="$CFLAGS -O2"
CFLAGS="$CFLAGS -O2 -fPIC -DPIC"
dnl Checks for programs.
AC_PROG_CC

View file

@ -42,7 +42,7 @@ const char *lgs_help_chan[] = {
"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:",

View file

@ -580,7 +580,7 @@ static int lgs_chans(User * u, char **av, int ac) {
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 @@ static int lgs_chans(User * u, char **av, int ac) {
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);