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 

Ban Protection
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Thu Aug 23, 2007 2:20 pm    Post subject: Ban Protection Reply with quote

Hi, I need a tcl for ban protection what do this:

- if the bot is banned out from chan via X
- he (bot) check if his access enough to unban himself
- if his access level higher or equal with that ban level
- he unban himself
- if lower he do nothing
(and all of this works if x put the ban)

somebody have one ?
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Aug 23, 2007 3:12 pm    Post subject: Reply with quote

Ever heard of the archive? It has lots of scripts to do just that.
Back to top
View user's profile Send private message
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Thu Aug 23, 2007 5:08 pm    Post subject: Reply with quote

rosc2112 wrote:
Ever heard of the archive? It has lots of scripts to do just that.


hmm, ok than show me one, i dont found tcl who do only that
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Thu Aug 23, 2007 7:03 pm    Post subject: Reply with quote

Try this script:

xstuff

This should solve your problem.

iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Fri Aug 24, 2007 4:45 am    Post subject: Reply with quote

iamdeath wrote:
Try this script:

xstuff

This should solve your problem.

iamdeath


Thx, but this tcl doesn't works, i set in config: source scripts/xstuff.tcl
but when i rehash the bot the xstuff.tcl don't be loaded.
the first time i think, it just dont be appear in partyline, how is loaded. but when i use the command .chanset #chan +xneed he gives me error.
my eggdrops version: 1.7
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Fri Aug 24, 2007 8:43 am    Post subject: Reply with quote

be aware that some scripts require that you shut down the bot rather than just rehash.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Fri Aug 24, 2007 10:12 am    Post subject: Reply with quote

Ok, after restart its loaded but:

.chanset #szilagysag +xneed
Successfully set modes { +xneed } on #szilagysag.
[17:08] #[JoNi]_# chanset #szilagysag +xneed
[17:08] #szilagysag: mode change '+b *!*@simulator.users.undernet.org' by X!cservice@undernet.org
[17:08] simulator kicked from #szilagysag by X: (Ignor) No Reason
[17:08] Server says I'm not on channel: #szilagysag

He don't unban himself. why ?
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Aug 24, 2007 12:34 pm    Post subject: Reply with quote

Make sure your bot has access in that channel

The script is working fine with me, check this out.

Code:
[21:34] -> *x* ban #cricket Cricket
[21:34] * X sets mode: +b *!*@cricket.users.undernet.org
[21:34] * Cricket was kicked by X ((iamdeath) No Reason)
[21:34] -X- Added ban *!*@cricket.users.undernet.org to #cricket at level 75
[21:34] * X sets mode: -b *!*@cricket.users.undernet.org
[21:34] * Joins: Cricket (cricket@cricket.users.undernet.org)
[21:34] * X sets mode: +o Cricket

_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Mon Aug 27, 2007 11:04 am    Post subject: Reply with quote

hi, i have to try what happen if i suspend the bot and after i ban it, and he gives me an error:
simulator kicked from #szilagysag by X: (Ignor) No Reason
[17:39] Tcl error [::xstuff::notices]: no such channel record
[17:39] -X (cservice@undernet.org)- Your access on #szilagysag has been suspended.
[17:39] -X (cservice@undernet.org)- Sorry, you have insufficient access to perform that command

how can solve that ?
Back to top
View user's profile Send private message
Alchera
Revered One


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

PostPosted: Mon Aug 27, 2007 6:25 pm    Post subject: Reply with quote

[JoNi] wrote:
[17:39] -X (cservice@undernet.org)- Sorry, you have insufficient access to perform that command

how can solve that ?

Read the instructions that come with the script for a start and secondly, fix the channel access. It appears your bot attempted something for which it doesn't have cservice access to do.
_________________
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
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Tue Aug 28, 2007 4:19 am    Post subject: Reply with quote

Alchera wrote:
[JoNi] wrote:
[17:39] -X (cservice@undernet.org)- Sorry, you have insufficient access to perform that command

how can solve that ?

Read the instructions that come with the script for a start and secondly, fix the channel access. It appears your bot attempted something for which it doesn't have cservice access to do.


I think you don't understand what i'm say, so the bot have access simulator/simulator [111] , but i suspended, and after that i banned out from chan. And he gives this error: [17:39] Tcl error [::xstuff::notices]: no such channel record
The question is why ?
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Aug 28, 2007 2:58 pm    Post subject: Reply with quote

At what level did you set the ban, and what level is your bot?
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Tue Aug 28, 2007 4:27 pm    Post subject: Reply with quote

Tosser^^ wrote:
At what level did you set the ban, and what level is your bot?


The ban was level 75 and the bot have 111
Back to top
View user's profile Send private message
r0t3n
Owner


Joined: 31 May 2005
Posts: 507
Location: UK

PostPosted: Tue Aug 28, 2007 5:20 pm    Post subject: Reply with quote

you say you suspended the bot, which will mean it can't then unban itself??
_________________
r0t3n @ #r0t3n @ Quakenet
Back to top
View user's profile Send private message MSN Messenger
[JoNi]
Voice


Joined: 21 Aug 2007
Posts: 15

PostPosted: Tue Aug 28, 2007 6:06 pm    Post subject: Reply with quote

my question is just this: why he gives me that error ?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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