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.

Invite kickban if a op user invite clones to devolve limit

Old posts that have not been replied to for several years.
Locked
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Invite kickban if a op user invite clones to devolve limit

Post by Volume »

hello,
i need some help,
in the ircnet overtakes take often chans with some proxyclones...
the overtaker have in the chan op. i have a script this kicks by limit changes but some overtaker invite the clones and the invite devolve the limit...

for example:

Code: Select all

[06:33:41] * willi sets mode: +l 4
[06:33:54] -Netsurf.DE:#testchan- kkk carries an invitation from willi!mueller@hat.nen.bouncer.und.braucht.kein.girl-fri3nd.de (overriding channel limit).
[06:33:54] * kkk (kljkljkk@p508C2421.dip.t-dialin.net) has joined #testchan
the script must kickban the user that invites and take his flags !

please help me
sorry for my bad english i hope their can understand me[/list]
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Post by Volume »

please help me
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

So you want willi to be punished or kkk?
Once the game is over, the king and the pawn go back in the same box.
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Post by Volume »

caesar wrote:So you want willi to be punished or kkk?
Yes Willi must punished first with a kick than must the bots deops all user that havent +f channelflag.

and for 60 minutes only global owners can get ops from the bots
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

The [06:33:54] -Netsurf.DE:#testchan- kkk carries an invitation from willi!mueller@hat.nen.bouncer.und.braucht.kein.girl-fri3nd.de (overriding channel limit). sounds like a channel notice. Catch it in a proc, split the sentence to get them and then do a foreach and deop or whatever you want.
Once the game is over, the king and the pawn go back in the same box.
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Post by Volume »

caesar wrote:The [06:33:54] -Netsurf.DE:#testchan- kkk carries an invitation from willi!mueller@hat.nen.bouncer.und.braucht.kein.girl-fri3nd.de (overriding channel limit). sounds like a channel notice. Catch it in a proc, split the sentence to get them and then do a foreach and deop or whatever you want.
sorry i cant tcl scripting... i have found a InviteBan Script.
This script bans the Inviters but not the User Willi ... i have no idea what i must change. can you please help me ? the ircnet server netsurf make the notice not the user willi .

Code: Select all

# NoticeBan1.1 by Pulse
# This script bans anyone who notices the channel, unless it's a bot user with
# +o flag or above, or channel op or channel voice (no flag required).
# Greetings: Xnet #Xnet, #Aus
# Greetings: DALnet #Ankara ops, #Eggdrop Ops, #Botcentral Ops
# Greetings: IRCnet #Tuchola
# Personal greetings: my gf Karolina :), bro, mb@Xnet
# Contact pulse2@o2.pl 
# Contact on IRC: Xnet nick Jin, server mirage.xnet.org #Poland #Eggdrop
# DALnet nick Pulse` #b0tz #Eggdrop
# Successfully tested on eggdrop1.6.12, 1.6.6, 1.4.4
# If this script contains any bugs or you would like me to change something,
# don't hesitate to ask :)
# This script can be found on http://cord.nu/~pulse/stuff/tcl

#### History ###
# # # Who - what
# 1.0 Pulse - initial release
# 1.1 Pulse - added: option to turn on script locally, type of punishment, type of banmask
#
# # #
###

# Settings

# Chans where the script is supposed to work. "" means all chans where bot is oppeed.
# if you wanna enable script in certain chans set chanz "#channel1 #channel2"
set chanz ""

# Punishment method
# 1 - kick 2 - server ban 3 - local ban, 4 - global ban

set punishm "4"

# Kick Reason

set kickr "Don't use channel notice, \002only\002 channel ops(@)/voices(+) can use it."

# Ban type
# I guess it's enough ;)
# 1 - *!*@host.domain
# 2 - *!ident@host.domain
# 3 - *!*ident@host.domain
# 4 - *!ident@*
# 5 - *!*ident@*
# 6 - nick!*@*
# 7 - nick!ident@*
# 8 - nick!ident@host.doamin
# 9 - nick!*ident@host.domain
# 10 - nick!*@host

set bantype "1"

# Ban reason
set banr "You may \002NOT\002 use channel notice."

# Ban time in mins, 0 = perm ban, will be used only if you set punishm to 3 or 4
set btime "360"

bind NOTC - * NoticeBan

proc NoticeBan {nick uhost handle text dest} {
global botnick punishm kickr banr btime chanz bantype
if {(![validchan $dest]) || (![botisop $dest])} { return 0 }
if {[matchattr $nick mo|mo $dest] || [isop $nick $dest] || [isvoice $nick $dest] || [matchattr $nick o|o $dest]} {return 0} 
if {([isbotnick $nick]) || ([string tolower $nick] == "chanserv") || (![onchan $nick $dest])} {return 0} 
if {($chanz != "") && ([lsearch -exact [split [string tolower $chanz]] [string tolower $dest]] == -1)} {return 0} 
if {$punishm != "1"} {
switch -- $bantype { 
1 { set banmask "*!*@[lindex [split $uhost @] 1]" }
2 { set banmask "*!$uhost" }
3 { set banmask "*!*$uhost" }
4 { set banmask "*![lindex [split $uhost @] 0]@*" }
5 { set banmask "*!*[lindex [split $uhost @] 0]@*" }
6 { set banmask "$nick!*@*" } 
7 { set banmask "$nick![lindex [split $uhost @] 0]@*" }
8 { set banmask "$nick!$uhost" }
9 { set banmask "$nick!*$uhost" } 
10 { set banmask "$nick!*@[lindex [split $uhost @] 1]" } 
default { set banmask "*!*@[lindex [split $uhost @] 1]" }
return $banmask 
 }
}
if {$punishm == "1"} { 
putserv "KICK $dest $nick :$kickr"
}
if {$punishm == "2"} {
putserv "MODE $dest +b $banmask"
putserv "KICK $dest $nick :$kickr"
}
if {$punishm == "3"} {
newchanban "$dest" "$banmask" "NoticeBan" "$banr done by (\002$nick\002!$uhost)" "$btime" 
putserv "KICK $dest $nick :$kickr"
}
if {$punishm == "4"} {
newban "$banmask" "NoticeBan" "$banr done by (\002$nick\002!$uhost)" "$btime" 
putserv "KICK $dest $nick :$kickr"
}
return 1
  }
putlog "\037N\037oticeBan1.1 by Pulse has been loaded."
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

This script will not ban invites specifically.
It will ban anyone who sends a notice to a channel
(no matter what the notice is) where the script is activated. :lol:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

what tcl command triggers server notices?

Post by Volume »

this command do not trigger the server notices:
i havent found another command for this.
please help me.

Code: Select all

(7)  NOTC (stackable)
         bind notc <flags> <mask> <proc>
         procname <nick> <user@host> <handle> <text> <dest>

         Description: dest will be a nickname (the bot's nickname,
           obviously) or a channel name. mask is matched against the entire
           notice and can contain wildcards. It is considered a breach of
           protocol to respond to a /notice on IRC, so this is intended for
           internal use (logging, etc.) only. Note that server notices do not
           trigger the NOTC bind.

           New Tcl procs should be declared as
             proc notcproc {nick uhost hand text {dest ""}} {
               global botnick; if {$dest == ""} {set dest $botnick}
               ...
             }
           for compatibility.
         Module: server
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you've been here for more than 2 years, you still don't have a clue about Tcl/eggdrop scripting, and you post on the wrong forum - this one is for people who try to script themselves, which you've been unwilling to do for ages
V
Volume
Halfop
Posts: 84
Joined: Fri May 23, 2003 5:08 am

Post by Volume »

demond wrote:you've been here for more than 2 years, you still don't have a clue about Tcl/eggdrop scripting, and you post on the wrong forum - this one is for people who try to script themselves, which you've been unwilling to do for ages
you are only on that says i have post it in the wrong forum.
i would learn tcl but nobody help me so i cant lern tcl.

i have check the "wrong forum"

egghelp.org community Forum Index -> Scripting Help

what is wrong?

newbie not alowed? so rename the forum not for newbies!

my announcement have i do by get to know netbots. i havent time for scripting every day. i can only scripting when i have holidays!
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Use "bind RAW" with the key "NOTICE" you can search that on the forum. I beleive earlier when I was browsing I did find one of demond's example scripting binding to similarly to a server notice.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked