1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 07:23:12 +02:00

Remove FLAGS_NONL / NoNewLine(), which isn't used since 4.0.0 or so.

And add a FIXME, or at least a TODO-investigate-this item ;)
This commit is contained in:
Bram Matthys
2019-06-10 18:33:46 +02:00
parent ac19f91eb8
commit e5e260eaa1
2 changed files with 2 additions and 3 deletions
-2
View File
@@ -303,7 +303,6 @@ typedef OperPermission (*OperClassEntryEvalCallback)(OperClassACLEntryVar* varia
#define FLAGS_LOCAL 0x0800 /* set for local clients */
#define FLAGS_GOTID 0x1000 /* successful ident lookup achieved */
#define FLAGS_DOID 0x2000 /* I-lines say must use ident return */
#define FLAGS_NONL 0x4000 /* No \n in buffer */
#define FLAGS_NCALL 0x8000 /* Next call (don't ask...) */
#define FLAGS_ULINE 0x10000 /* User/server is considered U-lined */
#define FLAGS_SQUIT 0x20000 /* Server has been /squit by an oper */
@@ -427,7 +426,6 @@ typedef OperPermission (*OperClassEntryEvalCallback)(OperClassACLEntryVar* varia
#define SetAccess(x) ((x)->flags |= FLAGS_CHKACCESS); Debug((DEBUG_DEBUG, "SetAccess(%s)", (x)->name))
#define SetOutgoing(x) do { x->flags |= FLAGS_OUTGOING; } while(0)
#define DoingAuth(x) ((x)->flags & FLAGS_AUTH)
#define NoNewLine(x) ((x)->flags & FLAGS_NONL)
#define IsDCCNotice(x) ((x)->flags & FLAGS_DCCNOTICE)
#define SetDCCNotice(x) do { x->flags |= FLAGS_DCCNOTICE; } while(0)
#define SetRegNick(x) ((x)->umodes & UMODE_REGNICK)
+2 -1
View File
@@ -1353,7 +1353,8 @@ void read_packet(int fd, int revents, void *data)
cptr->local->lasttime = now;
if (cptr->local->lasttime > cptr->local->since)
cptr->local->since = cptr->local->lasttime;
cptr->flags &= ~(FLAGS_PINGSENT | FLAGS_NONL);
/* FIXME: Is this correct? I have my doubts. */
cptr->flags &= ~FLAGS_PINGSENT;
processdata = 1;
for (h = Hooks[HOOKTYPE_RAWPACKET_IN]; h; h = h->next)