| View previous topic :: View next topic |
| Author |
Message |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Tue Feb 07, 2006 4:50 pm Post subject: Voice script |
|
|
I've this simple line for to give voice to everyone that joins the channel:
| Code: | proc join:AutoVoice {nick host handle chan} {
putserv "mode $chan +v $nick"
} |
It works good but if I want that all the operator (bot included) are not voiced, how i must modify? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Feb 07, 2006 7:40 pm Post subject: |
|
|
Add the operators to the bot with +o flag and use:
| Code: | proc join:AutoVoice {nick host handle chan} {
if {[isbotnick $nick] || [matchattr $handle |o $chan]} {return 0}
putserv "mode $chan +v $nick"
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Sat Feb 11, 2006 11:17 am Post subject: |
|
|
| Sir_Fz wrote: | Add the operators to the bot with +o flag and use:
|
Thanks, just a few and it's ok...
Now the bot don't give +v to himself but already give to me.
I'm added as owner. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Sun Feb 12, 2006 8:01 am Post subject: |
|
|
| Thank you very much, now works perfectly!! |
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Sun Feb 12, 2006 9:31 am Post subject: |
|
|
I've used .adduser command to add to the bot's list the opped user, but it gives them +v again....  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Feb 12, 2006 10:41 am Post subject: |
|
|
| Cr4sh wrote: | I've used .adduser command to add to the bot's list the opped user, but it gives them +v again....  |
Their hosts probably changed. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Cr4sh Halfop

Joined: 14 Jan 2006 Posts: 63
|
Posted: Sun Feb 12, 2006 10:51 am Post subject: |
|
|
| Ok, this's possible i don't verify it again, then there's a way to resolve? |
|
| Back to top |
|
 |
dq Voice
Joined: 03 Apr 2006 Posts: 32
|
Posted: Thu Apr 06, 2006 11:41 am Post subject: Re: Voice script |
|
|
| Cr4sh wrote: | I've this simple line for to give voice to everyone that joins the channel:
| Code: | proc join:AutoVoice {nick host handle chan} {
putserv "mode $chan +v $nick"
} |
It works good but if I want that all the operator (bot included) are not voiced, how i must modify? |
How about voice certain nicks? |
|
| Back to top |
|
 |
|