This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Anti Spam by KAMI

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
aslpls
Halfop
Posts: 43
Joined: Mon May 02, 2016 9:41 am

Anti Spam by KAMI

Post by aslpls »

Hi all, need a little help in this script.

It is working, it kick + ban to a spam user.

Code: Select all


################################################################
# Anti Spam v1.0
#
# Author: ]Kami[ (http://www.slo-eggdrop.com)
# Bugs, questions: http://www.slo-eggdrop.com/forum
#
# History:
#        -n/a
#
# Latest Version: 
#               -1.0
#
# To do:
#      -n/a
#
# Info:
# Script bans users which don't have op or o/f flag and are using
# words "*#*", "*ftp://*", "*http://*", "*www.*"
##################################################################
# General settings
##################################################################
set spamreason "Thank you, Bye bye!"
# Here you set kick message
##################################################################
# Pubs
##################################################################
bind pubm - {* *#*} spam:pubm 
bind pubm - {* *ftp://*} spam:pubm 
bind pubm - {* *http://*} spam:pubm 
bind pubm - {* *www.*} spam:pubm
bind pubm - {* *https://*} spam:pubm
###################################################################
#                       Code starts here                          
################################################################### 

proc spam:pubm {nick uhost hand chan text} { 
  if {[matchattr $hand of|fo $chan] || [isop $nick $chan]} { 
    return 
  } 
  scan $uhost {%*[^@]@%s} host 
  putquick "MODE $chan +b *!*@$host" 
  putquick "KICK $chan $nick :$::spamreason"
} 

putlog "Anti Spam v1.0 by \]Kami\[ (http://Www.slo-eggdrop.com) loaded"


Here it is:

Code: Select all

* alain (alain@UX-5E1AB530.alshamil.net.ae) has joined #alain
<alain> https://www.nba.com
* alainbot sets mode: +b *!*@UX-5E1AB530.alshamil.net.ae
* alain was kicked by alainbot (Thank you, Bye bye!)
but in a matter of seconds, after I am kicked from the channel, i can joined again;

Code: Select all

* alain (alain@UX-5E1AB530.alshamil.net.ae) has joined #alain

can we add in the script for a time after kick/ban to join again the channel, around 10minutes or 20minutes?
User avatar
CrazyCat
Revered One
Posts: 1236
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

The ban is not removed, so I think the trouble comes from your "test user" which could have a protection.
Try with another user (from another IP) to verify
User avatar
aslpls
Halfop
Posts: 43
Joined: Mon May 02, 2016 9:41 am

Post by aslpls »

CrazyCat wrote:The ban is not removed, so I think the trouble comes from your "test user" which could have a protection.
Try with another user (from another IP) to verify

Hello CrazyCat, yes the ban has not been removed. but still the nick can join the channel.


see it here:

Code: Select all

[11:48] * hgfhgf (alain@UX-5E1AB530.alshamil.net.ae) has joined #alain
[11:48] <hgfhgf> http://forum.egghelp.org
[11:48] * alainbot sets mode: +b *!*@UX-5E1AB530.alshamil.net.ae
[11:48] * hgfhgf was kicked by alainbot (Thank you, Bye bye!)
[11:48] * hgfhgf (alain@UX-5E1AB530.alshamil.net.ae) has joined #alain
[11:49] <hgfhgf> asfafsa
[11:49] <hgfhgf> asfa

The ban is still not there is not removed. And the user can manage to chat in the channel.
It is very weird. once the user banned in the channel it cannot join again in that channel unless the user ban has been removed.



Update:

Now if the user commits flood text in the channel, the bot kick and ban the user.
But not for the reason in url post in the channel.


Anyway, thanks CC for the reply.
s
simo
Revered One
Posts: 1079
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

Could be due to exempts list

On what irc network is this running and what kind of ircd?
User avatar
aslpls
Halfop
Posts: 43
Joined: Mon May 02, 2016 9:41 am

Post by aslpls »

simo wrote:Could be due to exempts list

On what irc network is this running and what kind of ircd?

Hey simo, can we test it in your network. if you don't mind. :)
Post Reply