egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Akick protection/remove script
Goto page 1, 2  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Fri Jun 24, 2005 4:08 pm    Post subject: Akick protection/remove script Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Fri Jun 24, 2005 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Fri Jun 24, 2005 10:05 pm    Post subject: Reply with quote

I see... but that won't remove chanserv akick right?
That was the ideia...
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Jun 25, 2005 5:45 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Sat Jun 25, 2005 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jul 11, 2005 7:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Tue Jul 12, 2005 9:38 am    Post subject: Reply with quote

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... Neutral
What could it be wrong?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 12, 2005 12:37 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Tue Jul 12, 2005 2:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 12, 2005 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Wed Jul 13, 2005 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Jul 13, 2005 8:28 am    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Wed Jul 13, 2005 9:27 am    Post subject: Reply with quote

It won't work at all...
And also this shows up:

Quote:
(SNotice) *** For your security use '/ChanServ <command>' or '/quote ChanServ <command>' instead.


Sad
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jul 13, 2005 4:20 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Thunderdome
Op


Joined: 15 Mar 2005
Posts: 187

PostPosted: Wed Jul 13, 2005 7:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber