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.

Akick protection/remove script

Old posts that have not been replied to for several years.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Akick protection/remove script

Post by Thunderdome »

Hello!
I talked sometime ago about this.... so far I have only encountered one, made by Hal9000:

http://mega.ist.utl.pt/~mmve/tcl/index. ... er.0.2.tcl

but, it does not work ok... in fact, it does not work at all!
I tried to change the code, but with no sucess...
Can you guys see what is wrong with the code? it is made for PTnet, but I think it must be valid in all networks if it works out ok.... and since there is no similar script yet...

greetz,
João
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

From eggdrop.conf
set global-ban-time 120
The above removes all bans set by Ops after 120 minutes (2 hrs).
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

I see... but that won't remove chanserv akick right?
That was the ideia...
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

It will remove any ban placed in the Channel ban list (/mode #chan +b). The bans placed in the channel akick list (/cs akick #chan add <nick|host>) are unaffected.

PS: Saying simply "does not work" is of no help. Posting the script error does. :wink:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

I want to remove bans on the bot made on the channel akick list (/chanserv akick #chan add <nick|host>).

There is no error message... simply I akick the bot, and he can't remove the akick...
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind kick - "* user has been banned from channel" akick:remove

proc akick:remove {nick uhost hand chan targ rsn} {
 if {[isbotnick $targ]} {
  putquick "CHANSERV :akick $chan del $::botnick"
 }
}
The bot will try to remove the akick whenever it's kicked with reason "user has been banned from channel." (ofcourse you can change this)
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

even replacing the bind...
Eggdrop was kicked by ChanServ (Utilizador banido do canal)

It does not remove the akick... one does not notice os msn the chanserv...
but does /chanserv akick #channel del nick. The chanserv is not on the channel, it's a service... :|
What could it be wrong?
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try changing the bind to

Code: Select all

bind kick - "% % <kick-message>"
btw, does the kick message state the bot's nick ? if so then the whole code should be changed.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

Eggdrop was kicked by ChanServ (Utilizador banido do canal)
yes, if the bot was bottieboot, it would say bottieboot was kicked by ChanServ (Utilizador banido do canal).
And is the chanserv itself who does the kick...
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Try:

Code: Select all

bind kick - "% % *was kicked by ChanServ (Utilizador banido do canal)*" akick:remove 

proc akick:remove {nick uhost hand chan targ rsn} { 
 if {[isbotnick $targ] && [string equal -nocase "chanserv" $nick]} { 
  putquick "CHANSERV :akick $chan del $::botnick" 
 } 
}
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

Does not work either... :\
Does not remove the akick at all....
With that think you wrote does the bot perform /chanserv akick #channel botnick?
It is always the ChanServ who kicks the eggdrop in a akick, bunno if that helps...
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Code: Select all

bind kick - * akick:remove

proc akick:remove {nick uhost hand chan targ rsn} {
 if {[isbotnick $targ] && [string equal -nocase "chanserv" $nick]} {
  putquick "CHANSERV :akick $chan del $::botnick"
 }
}
This code should just as good? Seeing as it's still chanserv kicking him :)
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

It won't work at all...
And also this shows up:
(SNotice) *** For your security use '/ChanServ <command>' or '/quote ChanServ <command>' instead.
:(
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

If /msg chanserv (or chanserv@something) works on your server then try to use

Code: Select all

"PRIVMSG ChanServ :akick $chan del $::botnick"
instead.
User avatar
Thunderdome
Op
Posts: 187
Joined: Tue Mar 15, 2005 4:42 pm

Post by Thunderdome »

it won't support it... Just /chanserv or /quote chanserv
I don't understand... the code is okay right? Or is there something missing?
It seems like it detects the akick, but can't really remove it... does not communicate with chanserv.

(by the way, thanks for all the patience, I think this script is rather usefull to all with similar networks)
Locked