[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Suggestion old/new-mode
> From: Piotr Kucharski <chopin@xxxxxxxxxx>
> On Fri, Aug 27, 1999 at 06:19:00PM +0000, Axel Franke wrote:
> > My Suggestion is, that in the future old and new modes in the same
> > line works.
>
> my suggestion is: write it. we are too lazy to deal with it.
> mind that no new modes can be sent to old servers, so you will
> have to extract old modes from mode string to send it to old
> servers.
>
> p.
Enclosed the patch.
But here still extract unto erect, I think this is pointless. Me
anyway is no net known, in to the it still such differences with the
Server exist.
regards
Axel Franke
diff -bruN irc2.10.3/ircd/channel.c ircdneu/ircd/channel.c
--- irc2.10.3/ircd/channel.c Fri Aug 13 19:30:16 1999
+++ ircdneu/ircd/channel.c Mon Aug 30 01:53:46 1999
@@ -973,7 +973,6 @@
aClient *who;
Mode *mode, oldm;
Link *plp = NULL;
- int compat = -1; /* to prevent mixing old/new modes */
*mbuf = *pbuf = '\0';
if (parc < 1)
@@ -986,11 +985,6 @@
while (curr && *curr && count >= 0)
{
- if (compat == -1 && *curr != '-' && *curr != '+')
- if (*curr == 'e' || *curr == 'I')
- compat = 1;
- else
- compat = 0;
switch (*curr)
{
case '+':
@@ -1443,18 +1437,6 @@
curr = *++parv;
parc--;
}
- /*
- * Make sure old and new (+e/+I) modes won't get mixed
- * together on the same line
- */
- if (MyClient(sptr) && curr && *curr != '-' && *curr != '+')
- if (*curr == 'e' || *curr == 'I')
- {
- if (compat == 0)
- *curr = '\0';
- }
- else if (compat == 1)
- *curr = '\0';
} /* end of while loop for MODE processing */
whatt = 0;