mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2004
Posts: 6
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Oct 2004
Posts: 6
As I'm new here, I was peeved to see the pervs are spamming you anonymously as soon as one logs into a channel.
Can I block this somehow? keyword block etc.
Putting it mildly, they f*ck me right off and I'd kneecap them given half the chance!

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
click , and try use the Search .. it's there for a reason.. cool


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2004
Posts: 6
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Oct 2004
Posts: 6
Thanks Sparta. Just one more lil question though... I presume I use the scripts editor for this but as I'm brand new around here I am struggling. Can you point me in right dirction in setting this up please.

I'm trying to get hold of search but it's just finding the right keywords etc.

Your help has been much appreciated.
Pridepark

Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Hey there, That code would go in the Remote section of the script editor - to access it quickly, press [b]ALT+R[/b]. You can then just press 'OK' and it should work. Because that script is in [code] brackets, it won't paste correctly into the script editor, it will come out on one line, meaning it won't work. Simply paste it into Notepad and then copy it from notepad to the Remote section. This is assuming you use Internet Explorer. Hope that helps :) Regards,


Mentality/Chris
Joined: Oct 2004
Posts: 6
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Oct 2004
Posts: 6
Many thanks people. I'll give it a whirl.
Rich

Joined: Oct 2004
Posts: 6
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Oct 2004
Posts: 6
Hi, have done as instructed (I believe so anyway) but those idiots are still getting thru so either I've done something wrong or the scripts don't work. Just to confirm....

This is what still gets thru (I hope they have good hacker protection as I have good friends like that)

<Fqlir> You can find DVD Quality Amateur Porn Movies here => -edit-

THIS IS WHAT I SEE WHEN I PRESS ALT-R FOR REMOTE SCRIPTS AND THEN I PRESS OK TO ENABLE (IS THAT CORRECT?)

= $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 | .timerdcc 1 20 .sreq ask }
= $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 | .timerdcc 1 20 .sreq ask }
Contains an invitation.
Contains explicit material.
%reason contains a website url.

AND THIS IS WHAT IS IN THE SCRIPT FILE WHEN EDITED DIRECTLY WITH NOTEPAD.

[script]
#spamblocker on
on *:join:#:if ($nick == $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 |

.timerdcc 1 20 .sreq ask }
on *:part:#:if ($nick == $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 |

.timerdcc 1 20 .sreq ask }
#spamblocker end

#spamblocker2 on
On ^*:OPEN:?: {
if ($count($strip($1-), $+ $chr(35) $+ ,join,invite)) $&
var %reason = Contains an invitation.
if ($count($strip($1-),sex,money,xxx,porn,pr0n,naked,nude,pussy)) $&
var %reason = Contains explicit material.
if ($count($strip($1-),http://,ftp://,www.,.com,.htm,.jpg)) $&
var %reason = %reason contains a website url.
if (%reason) {
if ($ifmatch) echo -a >> Ignoring spam message(s) from $nick on $comchan($nick,1) because it %reason $nick is

ignored for 1 minute.
window -adk0 @spam 90 90
aline -p @spam Ignoring spam message(s) from $nick on $comchan($nick,1) because it %reason $nick is ignored for 1

minute.
close -m $nick
.ignore -pnu60 $nick 3
.notice $nick Message %reason Spam is ignored ! Ignoring for 1 minute.
halt
}
:end
}
#spamblocker2 end

HELP AND THAN KS.

Last edited by Mentality; 22/10/04 05:45 AM.
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Quote:
THIS IS WHAT I SEE WHEN I PRESS ALT-R FOR REMOTE SCRIPTS AND THEN I PRESS OK TO ENABLE (IS THAT CORRECT?)

= $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 | .timerdcc 1 20 .sreq ask }
= $me) { .enable #spamblocker2 | .sreq ignore | .timerspamblocker 1 20 .disable #spamblocker2 | .timerdcc 1 20 .sreq ask }
Contains an invitation.
Contains explicit material.
%reason contains a website url.


That code won't do anything, it should not be sitting in your Remote alone in a file. It doesn't make sense. All you need is the second block of code you pasted, the code sparta put in that other thread that he linked to. In that bit though, make sure it doesn't actually say '[script]' in the remote file.

I am slightly confused about what you mean by editing the script in Notepad - are you saying that the script does not fully display in the Remote editor, but does in the .mrc file in the mIRC directory if you open it with Notepad? That's highly unlikely, so you may be reading the Remote dialog wrong.

Regards,


Mentality/Chris
Joined: Oct 2004
Posts: 6
P
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
P
Joined: Oct 2004
Posts: 6
HI, I need take this script one step further if you're able to help.

The popups are blocked but the script pops up the blocked message everytime a block is done so really all I've managed to do here is block one popup with another! I don't need/want to see that a popup has been blocked, the fact I don't see them anymore is enough.

If you can't help thanks anyway.
Rich

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I would have tried to edit the code you suggested above but as Chris said it wouldn't work and he's hadly ever wrong. So here's some code that does work, sorry for it being poorly coded it is kinda late, but you wont get a @Window or such telling you what's been rejected as spam, instead you will get a simple echo to yourself. Here it is..

Code:
menu channel {
  $iif($dialog(spam),$style(3)) Spam: {
    dialog -dm spam spam 
  }
}  

dialog spam { 
  title "Spam"  
  size -1 -1 84 132  
  option dbu  
  box "Spam list",1,2 0 80 115  
  list 2,3 7 78 110, autohs, sort 
  box "",4,2 113 80 18  
  button "Add", 5, 5 119 16 9  
  button "Del", 6, 24 119 16 9  
  button "Close", 7, 59 119 20 9, ok
}

on *:dialog:spam:init:*: {   
  did -b spam 6   
  if ($exists(spamlist.txt)) { play -cs spamlist.txt 0 }
}
on *:dialog:spam:sclick:2: {  
  set %spam.sel $did(2,$did(2).sel)  
  did -e spam 6
}

on *:dialog:spam:sclick:5: {   
  set %spam.add $$?="Enter Word:"   
  write spamlist.txt did -a spam 2 %spam.add   
  write spam.txt %spam.add 
  did -a spam 2 %spam.add 
}

on *:dialog:spam:sclick:6: {  
  write -dw $+ "* $+ %spam.sel $+ *" spamlist.txt   
  write -dw $+ "* $+ %spam.sel $+ *" spam.txt   
  did -d spam 2 $did(spam,2).sel  
  did -b spam 6 
}

on 1:Open:?:*: { 
  if ($read(spam.txt,w, $strip($1-))) {     
    close -m $nick   
    .ignore -pnu60 $nick 3    
    .notice $nick Message $ifmatch Spam is ignored ! Ignoring for 1 minute.    
    .echo -a $nick spammed you with $ifmatch now ignoring for 1 minute.    
    halt
  }
}

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Quote:
are you saying that the script does not fully display in the Remote editor, but does in the .mrc file in the mIRC directory if you open it with Notepad?

That happens because the script was pasted as plain text and then saved as an .ini file (without using the correct .ini format n0= n1= etc).

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
  • if ($read(spam.txt,w, $strip($1-))) {

That probably won't work as intended unless the text file contains the entire message on one line, which would be a cumbersome way to add items to block grin

I used your dialog (added an edit button) and changed it all slightly so it loads the file into a hash table.
This does not have any notification of blocks at all, it just does it quietly grin
Code:
dialog spam {
  title "Spam"
  size -1 -1 84 132
  option dbu
  box "Spam list",1,2 0 80 115
  list 2,3 7 78 110, autohs, sort
  box "",4,2 113 80 18
  button "Add", 5, 5 119 16 9
  button "Del", 6, 24 119 16 9,disable
  button "Edit", 7, 43 119 16 9,disable
  button "Close", 8, 62 119 19 9, ok
}
on *:dialog:spam:init:*:{
  if $isfile(spam.txt) { spamfilefix | loadbuf -o spam 2 spam.txt }
}
on *:dialog:spam:sclick:2: {
  if $did(2).sel { did -e spam 6,7 }
}
on *:dialog:spam:sclick:5:{
  var %a = $$input(Enter Word:,eu,Spam)
  if $left(%a,1) $right(%a,1) != * * { %a = $+(*,%a,*) }
  did -a spam 2 %a
  write spam.txt %a
  _spaminit
}
on *:dialog:spam:sclick:6:{
  write -dw $+ $did(2,$did(2).sel) spam.txt
  did -d spam 2 $did(spam,2).sel
  did -b spam 6,7
  savebuf -o spam 2 spam.txt
  _spaminit
}
on *:dialog:spam:sclick:7:{
  var %a = $$input(Enter word or string to block:,eu,Spam,$did(2,$did(2).sel))
  did -d spam 2 $did(spam,2).sel
  if $left(%a,1) $right(%a,1) != * * { %a = $+(*,%a,*) }
  did -a spam 2 %a
  did -b spam 6,7
  savebuf -o spam 2 spam.txt
  _spaminit
}
on *^:open:?:{
  if !$hget(spam) { _spaminit }
  if $hfind(spam,$strip($1-),1,W).data { .ignore -pnu60 $wildsite | halt }
}
on *^:text:*:?:
  if !$hget(spam) { _spaminit }
  if $hfind(spam,$strip($1-),1,W).data { .ignore -pnu60 $wildsite | close -m $nick | haltdef }
}
alias -l _spaminit {
  if $hget(spam) { hdel -w spam * }
  else hmake spam 5
  if $isfile(spam.txt) { hload -n spam spam.txt }
}
alias -l _spamfix  {
  tokenize 32 $1
  if $left($2,1) $right($2-,1) != * * {
    write -l $+ $1 spam.txt $+(*,$2-,*)
    ; If it has one * but not the other an extra one won't hurt anything
  }
}
menu channel,nicklist,query,status {
  $iif($dialog(spam),$style(3)) Spam:dialog -mo spam spam
}
alias spamfilefix {
  filter -fnk spam.txt _spamfix
}

When the dialog is opened it will alter 'spam.txt' to the format required here. The other file is not needed. :[/b])

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
My beautiful dialog is soiled goods. frown shocked


Link Copied to Clipboard