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.

Blacklist Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Blacklist Script

Post by Danik »

Does anybody know a blacklist script in witch the eggdrop use X Undernet to ban users witch are blacklisted?

I searched the forum and tcl archive ... but with no results ...
z
ztian299
Halfop
Posts: 59
Joined: Sat Apr 19, 2008 4:57 pm
Location: *.no

Post by ztian299 »

D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

ztian299 wrote:try Allprotection:

http://forum.egghelp.org/viewtopic.php?t=9721
this is not a blacklist script ... and it doesnt use X Undernet to ban users
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

Nor7on wrote:http://forum.egghelp.org/viewtopic.php? ... =blacklist

and add the line that ur need.
Once again ... I need the eggdrop to use its access to X Undernet to ban users that are in the blacklist
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

I added the script to the eggdrop but I can't figure out how to insert bans in it
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

use lol.tcl

!ban *!*@host.domain time reason - !banmask *!*@host.domain time reason

0 = perm

when un user join and have ban, ur eggdrop put ban via X.
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

Nor7on wrote:use lol.tcl

!ban *!*@host.domain time reason - !banmask *!*@host.domain time reason

0 = perm

when un user join and have ban, ur eggdrop put ban via X.
Does this work even if the eggdrop doesn't have op (@) on the chan ?
z
ztian299
Halfop
Posts: 59
Joined: Sat Apr 19, 2008 4:57 pm
Location: *.no

Post by ztian299 »

Don't think so, if so.. the bot need to have access to add bans in X
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

ztian299 wrote:Don't think so, if so.. the bot need to have access to add bans in X

the egg has access to X Undernet but it doesn't have OP (@)

NOOP flag is active on the channel
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

Paste the code.
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

Code: Select all

bind KICK - * CService:kick:by:X:revenge 

proc CService:kick:by:X:revenge { nick host hand chan target reason } { 
  global botnick 
  if {$hand == "X" && ([isbotnick $target] || [matchattr [nick2hand $target $chan] mo|mo $chan])} { 
   set temp1 [lindex [split [lindex [split $reason] 0] "("] 1] 
   set username [lindex [split [lindex [split $temp1] 0] ")"] 0] 
   putserv "PRIVMSG X :SUSPEND $chan $username 5 D" 
   putserv "PRIVMSG X :UNBAN $chan $botnick" 
   puthelp "PRIVMSG X :INVITE $chan" 
  } 
}
the blacklist witch use X undernet to ban works now perfectly :)
But does anybody know a public command, to add and remove bans from this list ?
User avatar
Nor7on
Op
Posts: 185
Joined: Sat Mar 03, 2007 8:05 am
Location: Spain - Barcelona
Contact:

Post by Nor7on »

http://forum.egghelp.org/viewtopic.php? ... ight=unban

U should search in the forum before send a post.
D
Danik
Halfop
Posts: 49
Joined: Sun Jun 15, 2008 12:59 pm
Location: Moldova
Contact:

Post by Danik »

I couldn't find the script I need on this link
I need (ban & unban public command script))
Post Reply