Queryblocker

Vor einiger Zeit habe ich beschlossen einen Query­blocker zu schreiben als es mir ziem­lich auf die Ner­ven ging ständig von Leuten ange­sprochen wurde die ich nicht kan­nte.
Mit­tler­weile benötige ich ihn nicht mehr, allerd­ings werde ich nach wie vor desöfteren darum gebeten, daher behalte ich ihn hier.

Für das Script wird NoN­ame­Script benötigt

Down­load (Ver­sion 0.9)

Changelog:

v0.9 (03.01.2007 17:46)
— fixed com­pat­i­bil­ity with nns 4.x
won’t work with 3.8x any­more!
— changed auto­matic answers from msg to notice
v0.81 (19.05.2004 19:41)
— fixed a typo (regard­ing ( HFREE) is an invalid com­mand)
— fixed not sav­ing auth/blocklist to file when empty
— fixed mes­sage was never shown on unde­ter­minable host­mask
— auth/blocklist now shows all online nicks match­ing to a host­mask
— hide nick­list menu com­pletely when no nick selected
— added “thanks”-section to readme
v0.8
— fixed mes­sage show­ing up twice
— improved auth-/blocklist view
— greatly improved add host­mask dia­log
— added “silent” mode for mes­sages to QBLog win­dow
— now blocked mes­sages can be hid­den
— added menu for QBLog win­dow
— minor cleanups through the whole script
— nick­list menu is now only enabled when a nick is selected
— link in about dia­log is now click­able
v0.71
— fixed show mes­sage bug
— fixed delete mask from block­list bug
— fixed bug from nick­list menu
v0.7
— fixed error mes­sages on first load
— new setup dia­log
set­tings avail­able:
o show mes­sages in active/own/no win­dow
o show bal­loon tips
o show in away log
o log to sta­tus win­dow
o cus­tomiz­able mes­sages
o list of authed/blocked host­masks
o some sta­tis­tics
— added com­mand /qbsetup
v0.6
— blocked mes­sages are now shown in own win­dow
— added easy removal to con­text menu
— now host­mask types 0–9 are avail­able instead of 2 and 3
v0.5
— now check­ing for up to date IAL
— cleaned up the code some
— added cur­rent nicks to auth-list if known
— added some sta­tis­tics
— fixed not sav­ing new host­masks
v0.4
— switched from ascii files to hash tables
the speedup is amaz­ing :)
— auth list dia­log is now finally work­ing
v0.3
— show com­mon chan­nels
— pre­fix com­mon chan­nels with @/+
— improved dis­play of allowed host­mask in con­text menu
— made noti­fi­ca­tion to enquirer optional
v0.2
— the blocker does not catch already opened query win­dows
— win­dows are new sup­pressed com­pletely
— you can tem­porar­ily dis­able the blocker via menu
— enabled the auth list overview (still non func­tional)
v0.1
— ini­tial version

5 Gedanken zu “Queryblocker

  1. It cur­rently only runs glob­ally.
    With­out look­ing at the code, I’d guess you’d have to mod­ify it by adding a fil­ter like “if ($net­work != Your­Net­work) { return }” as a first line in the on open event.

    Exam­ple:
    on ^*:open:?:*:{
    if ($network != YourNetwork) { return }
    [...]
    }

  2. on ^:open:?::{
    if ($net­work != After-ALL) { return }
    […]
    }
    on 1:START:{
    hmake qb.authlist 300
    hmake qb.blocklist 300
    if ($exists(qb_auths.dat)) hload –ob qb.authlist qb_auths.dat
    if ($exists(qb_blocks.dat)) hload –ob qb.blocklist qb_blocks.dat
    echo –s Query Blocker %qb.version © 2003–2004 by Phreak loaded, blocker: $sd($iif(%qb.disabled == 0,enabled,disabled)) $+ , notify: $sd($iif(%qb.notify == 1,enabled,disabled)) $+ , allowed host­masks: $sd($hget(qb.authlist,0).item) $+ , blocked/unknown host­masks: $sd($hget(qb.blocklist,0).item) $+ , blocked queries: $sd(%qb.blocked)
    }

    and in MIRC options i have After-ALL as the net­work name. Amaz­ing script just need to get it to only work on After-ALL :)

    Also , it seems i cant remove hosts from the allowed list :(

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *

*

Du kannst folgende HTML-Tags benutzen: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">