* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: m_nick.c,v 1.2 2005/01/13 06:21:18 mmondor Exp $ */
+/* $Id: m_nick.c,v 1.3 2005/01/13 08:06:45 mmondor Exp $ */
#include "struct.h"
#include "common.h"
}
#ifdef COLORED_NICKS
+ {
+ char *p;
+
+ if ( (p = strrchr(parv[1], '\003')) &&
+ ((p[1] >= '0') && (p[1] <= '9')) )
{
- 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';
- }
+ int n = strlen(parv[1]);
+
+ parv[1][ (n < NICKLEN) ? n : NICKLEN ] = '\003';
}
+ }
#endif
if (!IsServer(sptr) && IsServer(cptr) && parc > 2)