[svn] chghost: refuse spoofs which are empty or start with a colon
(would break the protocol)
This commit is contained in:
parent
f22db6d04b
commit
822a4a2537
3 changed files with 14 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
#define SERNO "20070422-3420"
|
||||
#define SERNO "20070422-3422"
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue