more updates

This commit is contained in:
fishwaldo 2002-09-20 09:05:18 +00:00
parent 70592e1740
commit 006bdd6fb1
7 changed files with 82 additions and 27 deletions

View file

@ -7,7 +7,7 @@ Symbols are:
* NeoIRCd Version 0.9.3 - 19th Sept, 2002 - Fish
(HP) - Merged in Hybrid rc4 Patches (including Rc3 and Rc3 fixes)
(F) - Fixed up Persistant Channels.
(F) - Fixed up configure problem when it can't find msgfmt
* NeoIRCd Version 0.9.2 - 17th Sept, 2002 - Fish
(F) - Fixed a problem with servers setting modes

View file

@ -1,4 +1,4 @@
dnl $Id: configure.in,v 1.4 2002/09/17 07:42:15 fishwaldo Exp $
dnl $Id: configure.in,v 1.5 2002/09/20 09:05:18 fishwaldo Exp $
dnl Process this file with autoconf to produce a configure script.
dnl AC_INIT(include/class.h) <- what is this ? -TimeMr14C
@ -9,7 +9,7 @@ AC_CONFIG_HEADER(include/setup.h servlink/setup.h)
AC_PREFIX_DEFAULT(~/NeoIRCd)
PACKAGE=NeoIRCd
VERSION=0.9.1
VERSION=0.9.3
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
@ -156,6 +156,8 @@ AC_PATH_PROG(LN, ln)
AC_PATH_PROG(SED, sed)
AC_PATH_PROG(AR, ar)
AC_PATH_PROG(LD, ld)
AC_PATH_PROG(MSGFMT, msgfmt, no)
AC_PROG_YACC
AC_PROG_INSTALL
AC_PROG_LEX
@ -641,10 +643,16 @@ AC_DEFINE_UNQUOTED(SELECT_TYPE, "$SELECT_TYPE")
AC_SUBST(SELECT_SRC)
if test "$ac_cv_func_gettext" = "yes" -o "$ac_cv_lib_intl_gettext" = "yes"; then
echo "Building with gettext."
MSGFMT="msgfmt -o"
SUBDIR_MESSAGES="messages"
AC_DEFINE(HAVE_GETTEXT)
if test "$MSGFMT" = "no"; then
echo "Bulding without Gettext"
MSGFMT="echo"
SUBDIR_MESSGAES=""
else
echo "Building with gettext."
MSGFMT="msgfmt -o"
SUBDIR_MESSAGES="messages"
AC_DEFINE(HAVE_GETTEXT)
fi
else
MSGFMT="echo"
SUBDIR_MESSAGES=""

59
configure vendored
View file

@ -1247,7 +1247,7 @@ ac_config_headers="$ac_config_headers include/setup.h servlink/setup.h"
PACKAGE=NeoIRCd
VERSION=0.9.1
VERSION=0.9.3
@ -2557,6 +2557,47 @@ else
echo "${ECHO_T}no" >&6
fi
# Extract the first word of "msgfmt", so it can be a program name with args.
set dummy msgfmt; ac_word=$2
echo "$as_me:$LINENO: checking for $ac_word" >&5
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
if test "${ac_cv_path_MSGFMT+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
case $MSGFMT in
[\\/]* | ?:[\\/]*)
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
;;
*)
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for as_dir in $PATH
do
IFS=$as_save_IFS
test -z "$as_dir" && as_dir=.
for ac_exec_ext in '' $ac_executable_extensions; do
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
break 2
fi
done
done
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
;;
esac
fi
MSGFMT=$ac_cv_path_MSGFMT
if test -n "$MSGFMT"; then
echo "$as_me:$LINENO: result: $MSGFMT" >&5
echo "${ECHO_T}$MSGFMT" >&6
else
echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6
fi
for ac_prog in 'bison -y' byacc
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
@ -6658,13 +6699,19 @@ _ACEOF
if test "$ac_cv_func_gettext" = "yes" -o "$ac_cv_lib_intl_gettext" = "yes"; then
echo "Building with gettext."
MSGFMT="msgfmt -o"
SUBDIR_MESSAGES="messages"
cat >>confdefs.h <<\_ACEOF
if test "$MSGFMT" = "no"; then
echo "Bulding without Gettext"
MSGFMT="echo"
SUBDIR_MESSGAES=""
else
echo "Building with gettext."
MSGFMT="msgfmt -o"
SUBDIR_MESSAGES="messages"
cat >>confdefs.h <<\_ACEOF
#define HAVE_GETTEXT 1
_ACEOF
fi
else
MSGFMT="echo"
SUBDIR_MESSAGES=""
@ -8822,6 +8869,7 @@ s,@LN@,$LN,;t t
s,@SED@,$SED,;t t
s,@AR@,$AR,;t t
s,@LD@,$LD,;t t
s,@MSGFMT@,$MSGFMT,;t t
s,@YACC@,$YACC,;t t
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
@ -8842,7 +8890,6 @@ s,@SSL_INCLUDES@,$SSL_INCLUDES,;t t
s,@SSL_LIBS@,$SSL_LIBS,;t t
s,@INCDEP@,$INCDEP,;t t
s,@SUBDIR_MESSAGES@,$SUBDIR_MESSAGES,;t t
s,@MSGFMT@,$MSGFMT,;t t
s,@IRC_CFLAGS@,$IRC_CFLAGS,;t t
s,@SEDOBJ@,$SEDOBJ,;t t
CEOF

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: m_nick.c,v 1.9 2002/09/19 05:41:11 fishwaldo Exp $
* $Id: m_nick.c,v 1.10 2002/09/20 09:05:18 fishwaldo Exp $
*/
#include "stdinc.h"
@ -97,7 +97,7 @@ _moddeinit(void)
mod_del_cmd(&client_msgtab);
}
const char *_version = "$Revision: 1.9 $";
const char *_version = "$Revision: 1.10 $";
#endif
/*
@ -728,7 +728,7 @@ nick_from_server(struct Client *client_p, struct Client *source_p, int parc,
Count.oper++;
/* we only allow Ulined Servers to set +s */
if ((flag & FLAGS_SERVICES) && (!IsUlined(source_p->from))) {
if ((flag & FLAGS_SERVICES) && (!IsUlined(parv[7]))) {
sendto_one(source_p, ":%s NOTICE %s :*** Only Ulined Services can set +S", me.name, source_p->name);
sendto_realops_flags(FLAGS_ALL|FLAGS_REMOTE, L_ALL, "Warning, Non-Ulined Server %s tried to set %s as +S", source_p->from->name, source_p->name);
/* we don't allow them to get +S, so do a continue */

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: m_server.c,v 1.7 2002/09/19 05:41:11 fishwaldo Exp $
* $Id: m_server.c,v 1.8 2002/09/20 09:05:18 fishwaldo Exp $
*/
#include "stdinc.h"
@ -67,7 +67,7 @@ _moddeinit(void)
{
mod_del_cmd(&server_msgtab);
}
const char *_version = "$Revision: 1.7 $";
const char *_version = "$Revision: 1.8 $";
#endif
int bogus_host(char *host);
@ -252,11 +252,11 @@ static void mr_server(struct Client *client_p, struct Client *source_p,
/* clear the Ulined flag */
client_p->flags &= ~FLAGS_ULINED;
if (srvopt && SERVER_HIDDEN) client_p->hidden_server = 1;
if (srvopt & SERVER_HIDDEN) client_p->hidden_server = 1;
set_server_gecos(client_p, info);
/* if this server is trying to set itself Ulined, its Not allowed, so exit it */
if (srvopt && SERVER_ULINED) {
if (srvopt & SERVER_ULINED) {
sendto_realops_flags(FLAGS_ALL|FLAGS_REMOTE, L_ALL, "Server %s trying to U line itself. No Way, Nadda, I dun think so", client_p->name);
exit_client(client_p, client_p, client_p, "Got a Gline Instead");
return;

View file

@ -16,7 +16,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: m_alias.c,v 1.1 2002/09/13 06:50:06 fishwaldo Exp $
* $Id: m_alias.c,v 1.2 2002/09/20 09:05:18 fishwaldo Exp $
*/
/* List of ircd includes from ../include/ */
@ -130,7 +130,7 @@ _moddeinit(void)
/* When we last modified the file (shown in /modlist), this is usually:
*/
const char *_version = "$Revision: 1.1 $";
const char *_version = "$Revision: 1.2 $";
#endif
/*
@ -175,7 +175,7 @@ static void m_identify(struct Client *client_p, struct Client *source_p,
target_p = find_person(CHANSERV);
if ((target_p != NULL) && (IsServices(target_p))) {
/* send the message */
sendto_one(target_p, ":%s PRIVMSG %s!%s@%s :identify %s", source_p->name, target_p->name, target_p->username, target_p->host, parv[1]);
sendto_one(target_p, ":%s PRIVMSG %s@%s :identify %s", source_p->name, target_p->name, target_p->from->name, parv[1]);
return;
} else {
sendto_one(source_p, ":%s 440 %s %s :Services are currently down. Please try again later.", me.name, source_p->name, CHANSERV);
@ -186,7 +186,7 @@ static void m_identify(struct Client *client_p, struct Client *source_p,
target_p = find_person(NICKSERV);
if ((target_p != NULL) && (IsServices(target_p))) {
/* send the message */
sendto_one(target_p, ":%s PRIVMSG %s!%s@%s :identify %s", source_p->name, target_p->name, target_p->username, target_p->host, parv[1]);
sendto_one(target_p, ":%s PRIVMSG %s@%s :identify %s", source_p->name, target_p->name, target_p->from->name, parv[1]);
return;
} else {
sendto_one(source_p, ":%s 440 %s %s :Services are currently down. Please try again later.", me.name, source_p->name, NICKSERV);
@ -244,7 +244,7 @@ static void send_alias (char *who, struct Client *client_p, struct Client *sourc
if ((target_p != NULL) && (IsServices(target_p))) {
/* send the message */
sendto_one(target_p, ":%s PRIVMSG %s!%s@%s :%s", source_p->name, target_p->name, target_p->username, target_p->host, parv[1]);
sendto_one(target_p, ":%s PRIVMSG %s@%s :%s", source_p->name, target_p->name, target_p->from->name, parv[1]);
} else {
sendto_one(source_p, ":%s 440 %s %s :Services are currently down. Please try again later.", me.name, source_p->name, who);
return;

View file

@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
* $Id: s_user.c,v 1.15 2002/09/17 07:42:16 fishwaldo Exp $
* $Id: s_user.c,v 1.16 2002/09/20 09:05:18 fishwaldo Exp $
*/
#include "stdinc.h"
@ -1419,7 +1419,7 @@ oper_up( struct Client *source_p, struct ConfItem *aconf )
/* autojoin them to a channel if its defined */
flags = 0;
if (ConfigFileEntry.operautojoin) {
sendto_one(source_p, "%s NOTICE %s :Autojoining you to %s", me.name, source_p->name, ConfigFileEntry.operautojoin);
sendto_one(source_p, ":%s NOTICE %s :Autojoining you to %s", me.name, source_p->name, ConfigFileEntry.operautojoin);
if ((chptr = hash_find_channel(ConfigFileEntry.operautojoin)) != NULL) {
if (IsMember(source_p, chptr))
return(1);