| View previous topic :: View next topic |
| Author |
Message |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Fri Jun 24, 2005 4:08 pm Post subject: Akick protection/remove script |
|
|
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.php?com=download&file=akick.remover.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 |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Jun 24, 2005 7:37 pm Post subject: |
|
|
From eggdrop.conf
| Quote: | | 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 |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Fri Jun 24, 2005 10:05 pm Post subject: |
|
|
I see... but that won't remove chanserv akick right?
That was the ideia... |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Jun 25, 2005 5:45 pm Post subject: |
|
|
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.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Sat Jun 25, 2005 5:58 pm Post subject: |
|
|
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... |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Jul 11, 2005 7:26 pm Post subject: |
|
|
| Code: | 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) _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Tue Jul 12, 2005 9:38 am Post subject: |
|
|
even replacing the bind...
| Quote: | | 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? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jul 12, 2005 12:37 pm Post subject: |
|
|
Try changing the bind to
| Code: | | bind kick - "% % <kick-message>" |
btw, does the kick message state the bot's nick ? if so then the whole code should be changed. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Tue Jul 12, 2005 2:30 pm Post subject: |
|
|
| Quote: | | 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... |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Jul 12, 2005 8:11 pm Post subject: |
|
|
Try:
| Code: | 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"
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Wed Jul 13, 2005 8:09 am Post subject: |
|
|
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... |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Jul 13, 2005 8:28 am Post subject: |
|
|
| Code: | 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  |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Wed Jul 13, 2005 9:27 am Post subject: |
|
|
It won't work at all...
And also this shows up:
| Quote: | | (SNotice) *** For your security use '/ChanServ <command>' or '/quote ChanServ <command>' instead. |
 |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Jul 13, 2005 4:20 pm Post subject: |
|
|
If /msg chanserv (or chanserv@something) works on your server then try to use
| Code: | | "PRIVMSG ChanServ :akick $chan del $::botnick" |
instead. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Thunderdome Op

Joined: 15 Mar 2005 Posts: 187
|
Posted: Wed Jul 13, 2005 7:05 pm Post subject: |
|
|
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) |
|
| Back to top |
|
 |
|