View Issue Details

IDProjectCategoryView StatusLast Update
0002714unrealircdpublic2007-04-27 05:25
ReporterSciFi Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to duplicate 
Product Version3.2.3 
Summary0002714: * doesn't seem to work anymore in ban blocks when badwords are used
Descriptionthere seems to be a problem when using badwords and ban blocks together.
when i added a few badwords and tried to do a ban nick on "*Serv" it didn't work anymore. a ban only on "Serv" worked. After removing all of the badwords also "*Serv" worked again.
i'm not very sure if it really is a bug, didn't have time to do really much of testing.
3rd party modules

Activities

SciFi

2005-12-08 16:42

reporter   ~0010830

Last edited: 2005-12-08 17:23

ok that's weird now

we enclosed all of the badwords into quotes and now it works. we removed them, it still works. now it either is because of some umlauts (äöü) or because of missing quotes and that only in some circumstances... so maybe it is hard to track :)

additionally:
we added "*\\*" as ban nick, so maybe there is a problem with that.

Nazzy

2005-12-08 17:12

reporter   ~0010831

okie, my testing suggests the following points:

- adding *\* to the config file will cause weird behaviour, the config parser treats it as an escaped *.

- adding *\\* to the config will cause *\* to get passed to the matcher ... so now the patten matcher thinks it is an escaped now.

- adding *\\\\* to the config will cause *\\* to get passed to the matcher ... causeing the nick Test\Test to be forbidden.


Why did changing the bad words make it work? I'm not sure ... either it changed the way the config parser was handling the escaping, or it changed the way that the matcher itself was being called.

aquanight

2005-12-08 22:00

reporter   ~0010834

I believe they added support for C-style escapes (\x \n \" \\) to the config parser, which basically means all \ in old configs have to be doubled. I think the config might be missing documentation to this effect...

I think the reason was probably because TRE didn't have \x which is something that's nice to have (like when spamfiltering based on CTCPs).

Nazzy

2005-12-08 22:20

reporter   ~0010835

Yeah, I had assumed that the config parser would require the \ to be escaped as \\ ... and a regex engine would also want the \ escaped, leading to \\\\

I also assumed that the more simplistic match code wouldn't require the second escaping....

What I don't get is why changing the way the bad words are defined would have changed the way the nick forbids work :/

stskeeps

2007-04-27 04:58

reporter   ~0013800

Bump. Fixed?

Bock

2007-04-27 05:22

reporter   ~0013816

in my network is present badwords and ban nick and it worked!

Issue History

Date Modified Username Field Change
2005-12-08 16:31 SciFi New Issue
2005-12-08 16:42 SciFi Note Added: 0010830
2005-12-08 16:44 SciFi Note Edited: 0010830
2005-12-08 17:12 Nazzy Note Added: 0010831
2005-12-08 17:23 SciFi Note Edited: 0010830
2005-12-08 22:00 aquanight Note Added: 0010834
2005-12-08 22:20 Nazzy Note Added: 0010835
2007-04-27 04:58 stskeeps Note Added: 0013800
2007-04-27 04:58 stskeeps Status new => feedback
2007-04-27 05:22 Bock Note Added: 0013816
2007-04-27 05:25 stskeeps Status feedback => closed
2007-04-27 05:25 stskeeps Resolution open => unable to duplicate