mIRC Home    About    Download    Register    News    Help

Print Thread
#151105 13/06/06 05:57 PM
Joined: Jun 2006
Posts: 9
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jun 2006
Posts: 9
hi new to all this.
can someone tell me how i can kick/ban someone for advertising a www site on my channel - i still wont my opps to be able to post www.sites though.
i know it is possible but dont know what the script is.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
try this
Code:
on *:TEXT:*:#:{
  if ($nick isop $chan) { return }
  if (*http* iswm $1-) || (*www* iswm $1-) || (*htm* iswm $1-) {
    ban -ku240 $chan $nick 3 No web Advertising Allowed.
  }
}

Joined: Jun 2006
Posts: 9
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jun 2006
Posts: 9
ok but where should i put this script

Joined: Mar 2004
Posts: 155
D
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 155
Paste the code to your remotes. Alt+R

Joined: Jun 2006
Posts: 9
C
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jun 2006
Posts: 9
ok thanks it worked but will i need to paste it every time i restart it

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
No. As long as you don't unload it, it will always be loaded into mIRC.

FYI: If you're putting a new script into your remotes, you should always make a new file (File > New) and not just paste it into some other script file. That will prevent errors from occuring if the same event is used already in the script that was there.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard