Skip to content
myano edited this page Dec 29, 2011 · 1 revision

Blocks

Jenni now has the ability to block people from using it's features.

Blocks for both nicks and hostmasks work two ways. You can enter a substring you want to match. This can be done by just adding the nick or you can use Python Regular Expressions.

Examples

Listing blocks

  • .blocks list nick - this lists nicks that are blocked
  • .blocks list hostmask - this lists hostmasks that are blocked

Adding a block

  • .blocks add nick foobar - this blocks the nick foobar and any nick that has the substring foobar
  • .blocks add hostmask gateway/web - this blocks hostmasks that contain the substring gateway/web
  • .blocks add nick (?i)foobar.* - this matches any combination of capitalizing letters for foobar and matches if anything comes at the end
  • .blocks add hostmask (?i).*troll.* - this will match on any hostmask that contains the word troll with any any combination of letters being capitalized, (?i).

Deleting a block

  • .blocks del nick foobar - this removes the nick foobar from the list of blocked nicks
  • .blocks del hostmask gateway/web - this removes the block for the hostmask gateway/web

A not about deleting blocks. You can't use regular expressions to match more than one nick or hostmask. You must copy/paste the exact block listed when doing a .blocks list (nick|hostmask) or the removal will not work.

Clone this wiki locally