From 8b87cc15abddd37cb05521f736cda3ef5c3127a0 Mon Sep 17 00:00:00 2001 From: "geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sun, 10 Sep 2006 19:46:53 +0000 Subject: BUILD : 1.7.15 (1152) BUGS : 599 NOTES : Corrected valid nick characters for /OS SVSNICK by making the bs_bot isvalidnick() macro global via services.h git-svn-id: svn://svn.anope.org/anope/trunk@1152 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@875 5417fbe8-f217-4b02-8779-1006273d7864 --- include/services.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') diff --git a/include/services.h b/include/services.h index fddfa02bf..9e83ca158 100644 --- a/include/services.h +++ b/include/services.h @@ -1327,6 +1327,17 @@ struct capabinfo_ { /*************************************************************************/ +/** + * RFC: defination of a valid nick + * nickname = ( letter / special ) *8( letter / digit / special / "-" ) + * letter = %x41-5A / %x61-7A ; A-Z / a-z + * digit = %x30-39 ; 0-9 + * special = %x5B-60 / %x7B-7D ; "[", "]", "\", "`", "_", "^", "{", "|", "}" + **/ +#define isvalidnick(c) ( isalnum(c) || ((c) >='\x5B' && (c) <='\x60') || ((c) >='\x7B' && (c) <='\x7D') || (c)=='-' ) + +/*************************************************************************/ + #include "extern.h" /*************************************************************************/ -- cgit