| View previous topic :: View next topic |
| Author |
Message |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Thu Aug 23, 2007 2:20 pm Post subject: Ban Protection |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Aug 23, 2007 3:12 pm Post subject: |
|
|
| Ever heard of the archive? It has lots of scripts to do just that. |
|
| Back to top |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Thu Aug 23, 2007 5:08 pm Post subject: |
|
|
| 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 |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Thu Aug 23, 2007 7:03 pm Post subject: |
|
|
Try this script:
xstuff
This should solve your problem.
iamdeath _________________ |AmDeAtH @ Undernet
Death is only the *Beginning*... |
|
| Back to top |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Fri Aug 24, 2007 4:45 am Post subject: |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Fri Aug 24, 2007 8:43 am Post subject: |
|
|
be aware that some scripts require that you shut down the bot rather than just rehash. _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Fri Aug 24, 2007 10:12 am Post subject: |
|
|
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 |
|
 |
iamdeath Master

Joined: 11 Feb 2005 Posts: 323 Location: *HeLL*
|
Posted: Fri Aug 24, 2007 12:34 pm Post subject: |
|
|
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 |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Mon Aug 27, 2007 11:04 am Post subject: |
|
|
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 |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Aug 27, 2007 6:25 pm Post subject: |
|
|
| [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 |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Tue Aug 28, 2007 4:19 am Post subject: |
|
|
| 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 |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Tue Aug 28, 2007 2:58 pm Post subject: |
|
|
At what level did you set the ban, and what level is your bot? _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Tue Aug 28, 2007 4:27 pm Post subject: |
|
|
| 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 |
|
 |
r0t3n Owner
Joined: 31 May 2005 Posts: 507 Location: UK
|
Posted: Tue Aug 28, 2007 5:20 pm Post subject: |
|
|
you say you suspended the bot, which will mean it can't then unban itself?? _________________ r0t3n @ #r0t3n @ Quakenet |
|
| Back to top |
|
 |
[JoNi] Voice
Joined: 21 Aug 2007 Posts: 15
|
Posted: Tue Aug 28, 2007 6:06 pm Post subject: |
|
|
| my question is just this: why he gives me that error ? |
|
| Back to top |
|
 |
|