Remove support for WebTV
authorRemco Rijnders <remco@webconquest.com>
Thu, 15 Jun 2017 07:36:46 +0000 (09:36 +0200)
committerRemco Rijnders <remco@webconquest.com>
Thu, 15 Jun 2017 07:36:46 +0000 (09:36 +0200)
include/struct.h
src/s_user.c

index a6a36373c1fcb378adc5c8575db177641502268e..057e63d3a849f59eb7c9eacb99d9a7d38826cf00 100644 (file)
@@ -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)
 
index fe485c6f8fc069ffeda6b9ca5daea93b6036d1d1..dea25c1b0b136476fcec27ee3ec42cde607b2475 100644 (file)
@@ -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))) {