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.

Ban Protection

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Ban Protection

Post by [JoNi] »

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 ?
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Ever heard of the archive? It has lots of scripts to do just that.
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Try this script:

xstuff

This should solve your problem.

iamdeath
|AmDeAtH @ Undernet
Death is only the *Beginning*...
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

be aware that some scripts require that you shut down the bot rather than just rehash.
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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 ?
User avatar
iamdeath
Master
Posts: 323
Joined: Fri Feb 11, 2005 2:32 pm
Location: *HeLL*
Contact:

Post by iamdeath »

Make sure your bot has access in that channel

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

Code: Select all

[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*...
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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 ?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

[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
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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 ?
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

At what level did you set the ban, and what level is your bot?
r0t3n @ #r0t3n @ Quakenet
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

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
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

you say you suspended the bot, which will mean it can't then unban itself??
r0t3n @ #r0t3n @ Quakenet
[
[JoNi]
Voice
Posts: 15
Joined: Tue Aug 21, 2007 9:08 am

Post by [JoNi] »

my question is just this: why he gives me that error ?
Post Reply