[svn] chghost: refuse spoofs which are empty or start with a colon

(would break the protocol)
This commit is contained in:
jilles 2007-04-25 08:21:34 -07:00
parent f22db6d04b
commit 822a4a2537
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,12 @@
jilles 2007/04/22 14:35:28 UTC (20070422-3422)
Log:
Fix description of 043 numeric.
Changes: Modified:
+2 -1 trunk/doc/collision_fnc.txt (File Modified)
jilles 2007/04/22 14:02:54 UTC (20070422-3420)
Log:
SAVE: make the nickTS of the UID nick equal to 100, so it

View File

@ -1 +1 @@
#define SERNO "20070422-3420"
#define SERNO "20070422-3422"

View File

@ -48,7 +48,7 @@ struct Message chghost_msgtab = {
mapi_clist_av1 chghost_clist[] = { &chghost_msgtab, &realhost_msgtab, NULL };
DECLARE_MODULE_AV1(chghost, NULL, NULL, chghost_clist, NULL, NULL, "$Revision: 3227 $");
DECLARE_MODULE_AV1(chghost, NULL, NULL, chghost_clist, NULL, NULL, "$Revision: 3424 $");
/* clean_host()
*
@ -60,6 +60,9 @@ static int
clean_host(const char *host)
{
int len = 0;
if (*host == '\0' || *host == ':')
return 0;
for(; *host; host++)
{