Unapplied COLORED_NICK patch
authorMatthew Wiggins <lithium@rubiks.net>
Mon, 7 Mar 2005 19:14:49 +0000 (19:14 +0000)
committerMatthew Wiggins <lithium@rubiks.net>
Mon, 7 Mar 2005 19:14:49 +0000 (19:14 +0000)
RUBIKS-CHANGES
include/config.h
include/struct.h
src/m_nick.c

index 96d263d..7d14868 100644 (file)
@@ -5,7 +5,6 @@ rubiks-ircd-1-0-0       Based on bahamut 1.8.3 release (BAHAMUT-1-8-3)
   - Fake hosts for opers (FAKEHOST in include/config.h)
   - DCC Allow patch (DCCALLOW in include/config.h)
   - OpenSSL (--enable-openssl in configure script)
-  - Colored Nicknames (COLORED_NICKS in include/config.h)
   - Added NO_TILDE in include/config.h to prevent ~ from being prefixed
     to usernames for which ident could not be retreived, can only be used
     if DO_IDENT is unset (default for rubiks-ircd)
index 011e067..8e7c88c 100644 (file)
@@ -18,7 +18,7 @@
  *
  */
 
-/* $Id: config.h,v 1.12 2005/01/15 23:35:02 mwiggins Exp $ */
+/* $Id: config.h,v 1.13 2005/03/07 19:14:48 mwiggins Exp $ */
 
 #ifndef        __config_include__
 #define        __config_include__
  */
 #undef DCCALLOW
 
-/* COLORED_NICKS
- * Allow ^C character in nicks to facilitate IRC colors
- */
-#define COLORED_NICKS
-
 /* FAKEHOST
  * Allow opers to use fake hostnames
  */
index dd38edc..c52dd3b 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-/* $Id: struct.h,v 1.6 2005/01/14 07:50:01 mwiggins Exp $ */
+/* $Id: struct.h,v 1.7 2005/03/07 19:14:49 mwiggins Exp $ */
 
 #ifndef        __struct_include__
 #define __struct_include__
@@ -1316,11 +1316,7 @@ struct Channel
 
 #define        BadPtr(x) (!(x) || (*(x) == '\0'))
 
-#ifdef COLORED_NICKS
-#define        isvalid(c) (((c) >= 'A' && (c) < '~') || (c) == '\003' ||  IsDigit(c) || (c) == '-')
-#else
 #define        isvalid(c) (((c) >= 'A' && (c) < '~') || IsDigit(c) || (c) == '-')
-#endif
 
 #define        MyConnect(x)                    ((x)->fd >= 0)
 #define        MyClient(x)                     (MyConnect(x) && IsClient(x))
index cb99830..88753c4 100644 (file)
@@ -20,7 +20,7 @@
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
 
-/* $Id: m_nick.c,v 1.3 2005/01/13 08:06:45 mmondor Exp $ */
+/* $Id: m_nick.c,v 1.4 2005/03/07 19:14:49 mwiggins Exp $ */
 
 #include "struct.h"
 #include "common.h"
@@ -106,20 +106,6 @@ int m_nick(aClient *cptr, aClient *sptr, int parc, char *parv[])
        return 0;
     }
 
-#ifdef COLORED_NICKS
-    {
-       char *p;
-
-       if ( (p = strrchr(parv[1], '\003')) &&
-               ((p[1] >= '0') && (p[1] <= '9')) ) 
-       {
-           int n = strlen(parv[1]);
-
-           parv[1][ (n < NICKLEN) ? n : NICKLEN ] = '\003';
-       }
-    }
-#endif
-  
     if (!IsServer(sptr) && IsServer(cptr) && parc > 2)
        newts = atol(parv[2]);
     else if (IsServer(sptr) && parc > 3)