mIRC Homepage
Posted By: chubster70 stop advertising on channel - 13/06/06 05:57 PM
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.
Posted By: MikeChat Re: stop advertising on channel - 13/06/06 06:17 PM
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.
  }
}
Posted By: chubster70 Re: stop advertising on channel - 13/06/06 08:07 PM
ok but where should i put this script
Posted By: Darkmnm Re: stop advertising on channel - 13/06/06 08:14 PM
Paste the code to your remotes. Alt+R
Posted By: chubster70 Re: stop advertising on channel - 13/06/06 08:22 PM
ok thanks it worked but will i need to paste it every time i restart it
Posted By: Riamus2 Re: stop advertising on channel - 13/06/06 09:40 PM
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.
© mIRC Discussion Forums