From: Remco Rijnders Date: Thu, 15 Jun 2017 07:36:46 +0000 (+0200) Subject: Remove support for WebTV X-Git-Url: http://git.serene-ircd.net/?a=commitdiff_plain;h=7c9859a1c2b196b142ea8b5d765a9914d55a3c1a;p=serene-ircd.git Remove support for WebTV --- diff --git a/include/struct.h b/include/struct.h index a6a3637..057e63d 100644 --- a/include/struct.h +++ b/include/struct.h @@ -198,7 +198,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */ #define UMODE_INVISIBLE 0x0001 /* makes user invisible */ #define UMODE_OPER 0x0002 /* Operator */ -#define UMODE_WEBTV 0x0004 /* WebTV user */ +//#define UMODE_WEBTV 0x0004 /* WebTV user */ #define UMODE_FAILOP 0x0008 /* Shows some global messages */ /* mode 0x0010 available */ #define UMODE_REGMSGONLY 0x0020 /* Only registered users may message */ @@ -219,7 +219,7 @@ typedef unsigned int u_int32_t; /* XXX Hope this works! */ #define UMODE_NETADMIN 0x20000 /* Network Admin */ #define UMODE_SROOT 0x40000 /* Services Root */ #define UMODE_IDENTIFY 0x80000 /* Identified */ -#define SEND_UMODES (UMODE_INVISIBLE|UMODE_OPER|UMODE_WEBTV|UMODE_FAILOP|UMODE_SADMIN|UMODE_ADMIN|UMODE_HIDE|UMODE_WHOIS|UMODE_NETADMIN|UMODE_SROOT|UMODE_IDENTIFY|UMODE_REGMSGONLY) +#define SEND_UMODES (UMODE_INVISIBLE|UMODE_OPER|UMODE_FAILOP|UMODE_SADMIN|UMODE_ADMIN|UMODE_HIDE|UMODE_WHOIS|UMODE_NETADMIN|UMODE_SROOT|UMODE_IDENTIFY|UMODE_REGMSGONLY) #define ALL_UMODES (SEND_UMODES|UMODE_SERVNOTICE|UMODE_LOCOP|UMODE_KILLS|UMODE_CLIENT|UMODE_FLOOD|UMODE_STATS) #define FLAGS_ID (FLAGS_DOID|FLAGS_GOTID) diff --git a/src/s_user.c b/src/s_user.c index fe485c6..dea25c1 100644 --- a/src/s_user.c +++ b/src/s_user.c @@ -1610,7 +1610,6 @@ static int user_modes[] = { UMODE_OPER, 'o', UMODE_ADMIN, 'A', UMODE_CLIENT, 'c', UMODE_FLOOD, 'f', - UMODE_WEBTV, 'w', UMODE_HIDE, 'x', UMODE_WHOIS, 'y', #ifdef SEEUSERSTATS @@ -3293,15 +3292,6 @@ int m_umode (cptr, sptr, parc, parv) } } break; - case 'w': // Only after identifying can one become a 'webbie' - if (what == MODE_ADD) { - if (!MyClient (sptr)) - sptr->umodes |= UMODE_WEBTV; - } - else if (what == MODE_DEL) { - sptr->umodes &= ~UMODE_WEBTV; - } - break; case 'N': if (!MyClient (sptr)) { if (what == MODE_ADD) { @@ -3515,14 +3505,6 @@ int m_svsmode (cptr, sptr, parc, parv) acptr->umodes &= ~UMODE_IDENTIFY; } break; - case 'w': - if (what == MODE_ADD) { - acptr->umodes |= UMODE_WEBTV; - } - else if (what == MODE_DEL) { - acptr->umodes &= ~UMODE_WEBTV; - } - break; default: for (s = user_modes; (flag = *s); s += 2) if (*m == (char) (*(s + 1))) {