mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-03 06:13:13 +02:00
Index: Changes
=================================================================== RCS file: /home/cmunk/ircsystems/cvsroot/unreal/Changes,v retrieving revision 1.1.1.1.2.1.2.1.2.2356 diff -u -r1.1.1.1.2.1.2.1.2.2356 Changes --- Changes 16 Apr 2007 17:21:19 -0000 1.1.1.1.2.1.2.1.2.2356 +++ Changes 17 Apr 2007 17:21:10 -0000 @@ -1583,4 +1583,6 @@ - #0002844 reported by RandomNumber: Spamfilter bawks on capitalizing actions - #0002404 reported by White_Magic, patched by w00t, removing /addline (which the bug report wasnt about) -- #0002420 reported by KnuX fixed by .. not sure +- #0002420 reported by KnuX fixed by WolfSage +- #0003147 reported by vonitsanet, fixed by djGrrr regarding making + spamfilters work in case of /setname
This commit is contained in:
@@ -1583,4 +1583,6 @@ MOTDs
|
||||
- #0002844 reported by RandomNumber: Spamfilter bawks on capitalizing actions
|
||||
- #0002404 reported by White_Magic, patched by w00t, removing /addline
|
||||
(which the bug report wasnt about)
|
||||
- #0002420 reported by KnuX fixed by .. not sure
|
||||
- #0002420 reported by KnuX fixed by WolfSage
|
||||
- #0003147 reported by vonitsanet, fixed by djGrrr regarding making
|
||||
spamfilters work in case of /setname
|
||||
|
||||
+15
-2
@@ -94,6 +94,10 @@ DLLFUNC int MOD_UNLOAD(m_setname)(int module_unload)
|
||||
*/
|
||||
DLLFUNC CMD_FUNC(m_setname)
|
||||
{
|
||||
int xx;
|
||||
char tmpinfo[REALLEN + 1];
|
||||
char spamfilter_user[NICKLEN + USERLEN + HOSTLEN + REALLEN + 64];
|
||||
|
||||
if ((parc < 2) || BadPtr(parv[1]))
|
||||
{
|
||||
sendto_one(sptr, err_str(ERR_NEEDMOREPARAMS), me.name, parv[0], "SETNAME");
|
||||
@@ -110,8 +114,17 @@ DLLFUNC CMD_FUNC(m_setname)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* set the new name before we check, but don't send to servers unless it is ok */
|
||||
strcpy(sptr->info, parv[1]);
|
||||
/* set temp info for spamfilter check*/
|
||||
strcpy(tmpinfo, sptr->info);
|
||||
/* set the new name before we check, but don't send to servers unless it is ok */
|
||||
strcpy(sptr->info, parv[1]);
|
||||
spamfilter_build_user_string(spamfilter_user, sptr->name, sptr);
|
||||
xx = dospamfilter(sptr, spamfilter_user, SPAMF_USER, NULL, 0, NULL);
|
||||
if (xx < 0) {
|
||||
if (sptr)
|
||||
strcpy(sptr->info, tmpinfo);
|
||||
return xx;
|
||||
}
|
||||
|
||||
/* Check for n:lines here too */
|
||||
if (!IsAnOper(sptr) && Find_ban(NULL, sptr->info, CONF_BAN_REALNAME))
|
||||
|
||||
Reference in New Issue
Block a user