#
# ChangeLog for Undernet ircu Servers
#
-# $Id: ChangeLog,v 1.1.1.1 1999-11-16 05:13:14 codercom Exp $
+# $Id: ChangeLog,v 1.2 1999-11-25 02:07:53 bleep Exp $
#
# Please insert new entries on the top of the list, a one or two line comment
# is sufficient. Please include your name on the entries we know who to blame.
# Please keep lines < 80 chars.
#-------------------------------------------------------------------------------
+* ircd.h, s_serv.h, s_debug.h, ircd.c, s_user.c, s_bsd.c:
+ removed STAT_MASTER/BOOT_OPER code, original patch by Isomer --Bleep
+* s_user.c (m_nick): removed redundant check for acptr --Bleep
* ChangeLog (file): added ChangeLog, and BUGS files, import to ircu2.10 --Bleep
#define BOOT_DEBUG 4
#define BOOT_INETD 8
#define BOOT_TTY 16
-#define BOOT_OPER 32
-#define BOOT_AUTODIE 64
+#define BOOT_AUTODIE 32
/*=============================================================================
* Proto types
/* Logging mask, selection on type of connection */
#define LOG_PING (0x8000 >> (8 + STAT_PING))
#define LOG_LOG (0x8000 >> (8 + STAT_LOG))
-#define LOG_MASTER (0x8000 >> (8 + STAT_MASTER))
#define LOG_CONNECTING (0x8000 >> (8 + STAT_CONNECTING))
#define LOG_HANDSHAKE (0x8000 >> (8 + STAT_HANDSHAKE))
#define LOG_ME (0x8000 >> (8 + STAT_ME))
* Default is to log messages coming from any connection.
*/
#define LOG_MASK_TYPE \
- ( LOG_PING | LOG_LOG | LOG_MASTER | LOG_CONNECTING | \
+ ( LOG_PING | LOG_LOG | LOG_CONNECTING | \
LOG_HANDSHAKE | LOG_ME | LOG_UNKNOWN | LOG_SERVER | LOG_CLIENT )
/*=============================================================================
#define STAT_PING 0
#define STAT_LOG 1 /* logfile for -x */
-#define STAT_MASTER 2 /* Local ircd master before identification */
-#define STAT_CONNECTING 3
-#define STAT_HANDSHAKE 4
-#define STAT_ME 5
-#define STAT_UNKNOWN 6
-#define STAT_UNKNOWN_USER 7 /* Connect to client port */
-#define STAT_UNKNOWN_SERVER 8 /* Connect to server port */
-#define STAT_SERVER 9
-#define STAT_USER 10
+#define STAT_CONNECTING 2
+#define STAT_HANDSHAKE 3
+#define STAT_ME 4
+#define STAT_UNKNOWN 5
+#define STAT_UNKNOWN_USER 6 /* Connect to client port */
+#define STAT_UNKNOWN_SERVER 7 /* Connect to server port */
+#define STAT_SERVER 8
+#define STAT_USER 9
/*
* for when you wanna create a bitmask of status values
#define IsUnknown(x) (IsStatMask(x, \
StatusMask(STAT_UNKNOWN)|\
StatusMask(STAT_UNKNOWN_USER)|\
- StatusMask(STAT_UNKNOWN_SERVER)|\
- StatusMask(STAT_MASTER)))
+ StatusMask(STAT_UNKNOWN_SERVER)))
#define IsServerPort(x) ((x)->status == STAT_UNKNOWN_SERVER )
#define IsUserPort(x) ((x)->status == STAT_UNKNOWN_USER )
-#define IsMaster(x) ((x)->status == STAT_MASTER)
#define IsClient(x) (IsStatMask(x, \
- StatusMask(STAT_MASTER)|\
StatusMask(STAT_HANDSHAKE)|\
StatusMask(STAT_ME)|\
StatusMask(STAT_UNKNOWN)|\
#define IsLog(x) ((x)->status == STAT_LOG)
#define IsPing(x) ((x)->status == STAT_PING)
-#define SetMaster(x) ((x)->status = STAT_MASTER)
#define SetConnecting(x) ((x)->status = STAT_CONNECTING)
#define SetHandshake(x) ((x)->status = STAT_HANDSHAKE)
#define SetServer(x) ((x)->status = STAT_SERVER)
close(1);
if ((bootopt & BOOT_CONSOLE) || isatty(0))
close(0);
- if (!(bootopt & (BOOT_INETD | BOOT_OPER)))
+ if (!(bootopt & BOOT_INETD))
execv(SPATH, myargv);
#ifdef USE_SYSLOG
/* Have to reopen since it has been closed above */
setuid((uid_t) uid);
dpath = p;
break;
- case 'o': /* Per user local daemon... */
- if (euid != uid)
- setuid((uid_t) uid);
- bootopt |= BOOT_OPER;
- break;
#ifdef CMDLINE_CONFIG
case 'f':
if (euid != uid)
hAddClient(&me);
check_class();
- if ((bootopt & BOOT_OPER))
- {
- aClient *tmp = add_connection(&me, 0, ADCON_TTY);
-
- if (!tmp)
- exit(1);
- SetMaster(tmp);
- }
- else
- write_pidfile();
+ write_pidfile();
init_counters();
close(2);
if (((bootopt & BOOT_CONSOLE) || isatty(0)) &&
- !(bootopt & (BOOT_INETD | BOOT_OPER)))
+ !(bootopt & BOOT_INETD))
{
if (fork())
exit(0);
Reg1 aConfItem *aconf;
char *parv[3], *tmpstr, *tmpstr2;
char c = 0 /* not alphanum */ , d = 'a' /* not a digit */ ;
- short oldstatus_ismaster = IsMaster(sptr), upper = 0, lower = 0;
+ short upper = 0;
+ short lower = 0;
short pos = 0, leadcaps = 0, other = 0, digits = 0, badid = 0;
short digitgroups = 0;
anUser *user = sptr->user;
me.name, ERR_INVALIDUSERNAME, cptr->name);
return exit_client(cptr, sptr, &me, "USER: Bad username");
}
-
- if (oldstatus_ismaster && MyConnect(sptr))
- m_oper(&me, sptr, 1, parv);
-
Count_unknownbecomesclient(sptr, nrof);
}
else
*/
int m_nick(aClient *cptr, aClient *sptr, int parc, char *parv[])
{
- aClient *acptr;
- aClient *server = NULL;
- char nick[NICKLEN + 2];
- char *s;
- Link *lp;
- time_t lastnick = (time_t) 0;
- int differ = 1;
+ aClient* acptr;
+ aClient* server = NULL;
+ char nick[NICKLEN + 2];
+ char* s;
+ Link* lp;
+ time_t lastnick = (time_t) 0;
+ int differ = 1;
if (parc < 2)
{
* is present in the nicklist (due to the way the below for loop is
* constructed). -avalon
*/
- if ((acptr = FindServer(nick)))
+ if ((acptr = FindServer(nick))) {
if (MyConnect(sptr))
{
sendto_one(sptr, err_str(ERR_NICKNAMEINUSE), me.name,
BadPtr(parv[0]) ? "*" : parv[0], nick);
return 0; /* NICK message ignored */
}
- /*
- * acptr already has result from previous FindServer()
- */
- if (acptr)
- {
/*
* We have a nickname trying to use the same name as
* a server. Send out a nick collision KILL to remove