From 822a4a25378d7b4bf091d8c281fb4577d34c163f Mon Sep 17 00:00:00 2001 From: jilles Date: Wed, 25 Apr 2007 08:21:34 -0700 Subject: [PATCH] [svn] chghost: refuse spoofs which are empty or start with a colon (would break the protocol) --- ChangeLog | 9 +++++++++ include/serno.h | 2 +- modules/m_chghost.c | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0ae63f6a..e1dfc012 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/include/serno.h b/include/serno.h index 640465e4..b22456e9 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070422-3420" +#define SERNO "20070422-3422" diff --git a/modules/m_chghost.c b/modules/m_chghost.c index fbb9022e..f4778e01 100644 --- a/modules/m_chghost.c +++ b/modules/m_chghost.c @@ -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++) {