mIRC Home    About    Download    Register    News    Help

Print Thread
stop advertising on channel #151105 13/06/06 05:57 PM
Joined: Jun 2006
Posts: 9
C
chubster70 Offline OP
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.

Re: stop advertising on channel #151106 13/06/06 06:17 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
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.
  }
}

Re: stop advertising on channel #151107 13/06/06 08:07 PM
Joined: Jun 2006
Posts: 9
C
chubster70 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Jun 2006
Posts: 9
ok but where should i put this script

Re: stop advertising on channel #151108 13/06/06 08:14 PM
Joined: Mar 2004
Posts: 135
D
Darkmnm Offline
Vogon poet
Offline
Vogon poet
D
Joined: Mar 2004
Posts: 135
Paste the code to your remotes. Alt+R

Re: stop advertising on channel #151109 13/06/06 08:22 PM
Joined: Jun 2006
Posts: 9
C
chubster70 Offline OP
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

Re: stop advertising on channel #151110 13/06/06 09:40 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
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