← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 888280] Re: reg exp in bans lua

 

For problems with those expressions you best use forums regarding Lua
and their patern matching.

The lower case was done intentialy to make it working for a user not
knowing so much about lua and who doesnt want to write 60 lines of
posible matches to block 1 search or msg

As soon the documentation is update and a correct example is puted there
this bug will be closed :)

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to ADCH++.
https://bugs.launchpad.net/bugs/888280

Title:
  reg exp in bans lua

Status in ADCH++:
  New

Bug description:
  I tried to use +bannickre and +banmsge in development code, using:

  +banmsgre 30 <.*\n.*\n.*> some reason
  +bannickre 1440 <.+(?<!(\[DS[1234]\]|\[AK[12]\]))> some reason

  As in the above example, I want to ban people writing multi-newline
  messages and force a certain username format. In my opinion and
  according to ADCH++ documentation, those regular expressions should
  work, but they don't. How can i use regular expressions in this
  functions properly? I also tried with Lua patterns, to no effect.
  Please tell me how can I use those functions...

To manage notifications about this bug go to:
https://bugs.launchpad.net/adchpp/+bug/888280/+subscriptions


References