A full spamfilter dialog made easy to use :P
For N00bie to expert.
I made this dialog as part of previous full ircop dialog but since then i have had many ppl asking for just the spamfilter dialog.
So here you go guys :P
Just copy and paste in remotes (alt+r)
Right click in a chan and u will see it :P
Menu channel {
Spamfilter:/dialog -m Pdialog Pdialog }
dialog Pdialog {
title "Spamfilters"
size -1 -1 200 273
option dbu
button "Add", 1, 8 8 37 12
button "Delete", 2, 8 24 37 12
button "List", 3, 8 40 37 12
text "ADD: /spamfilter add type action tkltime reason regex ", 4, 56 16 132 8
text "NOTES :", 5, 56 8 25 8
text "DEL: /spamfilter del type action tkltime reason regex ", 6, 56 24 130 8
text "[type] specifies the target type, you can specify multiple targets. ", 7, 8 64 161 8
text "c = channel msg", 8, 8 72 52 8
text "p = private msg ", 9, 8 80 53 8
text "n = private notice ", 10, 8 88 56 8
text "N = channel notice ", 11, 8 96 57 8
text "P = part msg ", 12, 8 104 58 8
text "q = quit msg", 13, 8 112 59 8
text "[action] specifies the action to be taken (only 1 action can be specified). ", 14, 8 128 178 8
text "block (blocks the msg) ", 15, 8 136 67 8
text "kill ", 16, 8 144 67 8
text "tempshun (only shun current session) ", 17, 8 152 99 8
text "shun ", 18, 8 160 70 8
text "kline ", 19, 8 168 68 8
text "gline ", 20, 8 176 69 8
text "zline ", 21, 8 184 69 8
text "gzline", 22, 8 192 68 8
text "[regex] this is the actual regex(text) where we should block on.", 23, 8 208 159 9
text "[tkltime] the duration of the *LINEs placed by action (use - to use the default set::spamfilter::ban-time, this value is ignored for block/tempshun).", 24, 8 224 187 16
text "[reason] the reason for the Spamfilter, CANNOT CONTAIN SPACES _ will be translated to spaces. Again dont use - in the reason space.", 25, 8 248 189 17
text "- = defalt", 26, 79 49 51 8
box "Help Box", 27, 3 55 195 217, disable
}
on *:DIALOG:Pdialog:sclick:1:{ /spamfilter add $$?="Type (ie: c,p,n,N,P,q) you can use more than 1 ie: cpnN" $$?="Action (ie: block,kill,tempshun,shun,kline,gline) only 1 action can be specifyed." $$?="tkltime (ie: -,1h,2h,12h ect,1d,2d,30d ect) use - for default. Note blocks & temshuns use -." $$?="Reason (do not use space's or -, use _ insead." $$?="Regex (text) ie: This is the message the spamfilter will catch on" }
on *:DIALOG:Pdialog:sclick:2:{ /spamfilter del $$?="Type (same as the one to be deleted, use list to view the spamfilter you wish to delete)" $$?="Action(same as the one to be deleted, use list to view the spamfilter you wish to delete)" $$?="tkltime (same as the one to be deleted, use list to view the spamfilter you wish to delete)use - if no time is specifyed" $$?="Reason (same as the one to be deleted, use list to view the spamfilter you wish to delete)" $$?="Regex(Text) (same as the one to be deleted, use list to view the spamfilter you wish to delete)" }
on *:DIALOG:Pdialog:sclick:3:{ /spamfilter }
EL
here ive broke it down a little for u :P
\"TYPE\" is the part to protect from (where spamfilter is trigered from) ie:
c= channel
p= private msg
n= private notice
N= channel notice
P= part msg
q= quit msg
What happens when a spamfilter is triggerd ie:
block
kill
tempshun
shun
kline
gline
zline
gzline
the last popup is the acually word that u want to add to the spamfilter
SPAMFILTER Unknown command calls that error several times,umm why is it just the dialog again? wheres the actually spam PROTECTION/FILTER? Its just a dialog? Not to mention the fact it poorly made,terrible interface and its effin huge,continuous pop ups to add a word?.Why not have editable spaces an lists etc.All in all its useless with out the actual protections.`-.-