| View previous topic :: View next topic |
| Author |
Message |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Sep 23, 2007 7:33 pm Post subject: |
|
|
| Code: | bind mode - {% *m} voice:devoice
proc voice:devoice {nick uhost hand chan mc dest} {
if {$mc == "+m"} {
foreach n [chanlist $chan] {
if {[isvoice $n $chan]} { pushmode $chan -v $n }
}
} {
foreach n [chanlist $chan] {
if {![isvoice $n $chan] && ![isop $n $chan] && ![ishalfop $n $chan]} {
pushmode $chan +v $n
}
}
}
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Sun Sep 23, 2007 8:26 pm Post subject: |
|
|
| Sir_Fz wrote: | | Code: | bind mode - {% *m} voice:devoice
proc voice:devoice {nick uhost hand chan mc dest} {
if {$mc == "+m"} {
foreach n [chanlist $chan] {
if {[isvoice $n $chan]} { pushmode $chan -v $n }
}
} {
foreach n [chanlist $chan] {
if {![isvoice $n $chan] && ![isop $n $chan] && ![ishalfop $n $chan]} {
pushmode $chan +v $n
}
}
}
} |
|
Do this take all +v when i type +mute ang gives them againg when i type -mute ? _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Sep 23, 2007 8:34 pm Post subject: |
|
|
No. When someone sets +m, the bot devoices all voices. When someone sets -m, the bot voices all users. If you want it to work on a public command, then you can easily modify it to do so. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Sun Sep 23, 2007 8:40 pm Post subject: |
|
|
| Sir_Fz wrote: | | No. When someone sets +m, the bot devoices all voices. When someone sets -m, the bot voices all users. If you want it to work on a public command, then you can easily modify it to do so. |
okay let see if i can do it
or els i'll get back
thanks so fare
the chan function like this there is always +m on chan.... so the +m (moderated) will not be toched  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Thu Oct 04, 2007 11:04 am Post subject: |
|
|
did not get it to work so it takes all +voice when i type +mute in chat, and gives them againg when i type -mute in chat  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Fri Oct 05, 2007 3:18 pm Post subject: |
|
|
Its done via mode. So when you do /mode #channel +m it voices everyone. And also when you do /mode #channel -m it devoices everyone. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Sat Oct 06, 2007 8:18 am Post subject: |
|
|
| TCL_no_TK wrote: | | Its done via mode. So when you do /mode #channel +m it voices everyone. And also when you do /mode #channel -m it devoices everyone. |
yes but it's the wrong way
when i type +mute (command) it shoul remove alle +v and when i type -mute (command) it shell give all users +v again.... _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sat Oct 06, 2007 8:22 pm Post subject: |
|
|
You mean in DCC CHAT/telnet with the eggdrop? or in the channel as a /msg #channel -mute | /msg #channel +mute sorry this is alit confussing for me :/ _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Oct 06, 2007 8:45 pm Post subject: |
|
|
Fire-Fox wants a public trigger apparently (although not indicated by initial posts). _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Sun Oct 07, 2007 8:18 am Post subject: |
|
|
Ok, think this should do it. | Quote: | proc pub:-mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {![isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel -v $t}
}; return 1
}
proc proc:+mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {[isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel +v $t}
}; return 1
}
bind pub - -mute pub:-mute
bind pub - +mute pub:+mute | It dosen't set [+/-]m on the channel, it just voice's everyone not voiced when you say +mute and it also devoice's everyone voiced when you say -mute. Added the binds as well incase you wasn't sure about them. i know am not. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Mon Oct 08, 2007 11:17 am Post subject: |
|
|
| TCL_no_TK wrote: | Ok, think this should do it. | Quote: | proc pub:-mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {![isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel -v $t}
}; return 1
}
proc proc:+mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {[isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel +v $t}
}; return 1
}
bind pub - -mute pub:-mute
bind pub - +mute pub:+mute | It dosen't set [+/-]m on the channel, it just voice's everyone not voiced when you say +mute and it also devoice's everyone voiced when you say -mute. Added the binds as well incase you wasn't sure about them. i know am not. |
it does not work when i type +mute nothing happens the same with -mute
| Quote: | proc pub:+mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {![isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel -v $t}
}; return 1
}
proc pub:-mute {nick host handle channel text} {
if {![botisop $channel]} {return 0}
foreach t [chanlist $channel] {
if {[isvoice $t $channel] && ![isop $t $channel] && ![ishalfop $t $channel] && ![isbotnick $t]} {pushmode $channel +v $t}
}; return 1
}
bind pub -|- -mute pub:-mute
bind pub -|- +mute pub:+mute
| [/quote] _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Thu Oct 11, 2007 2:45 am Post subject: |
|
|
There's a few things to check as to why it failed. The bot wasn't opped, everyone is op'd/halfop'd on the channel. Or depending on the [+/-]mute switch everyone was/wasn't voice'd already. Apart from that, the script is complete untested by me and this is only based on what the code is checking. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Fri Oct 12, 2007 2:49 pm Post subject: |
|
|
| TCL_no_TK wrote: | | There's a few things to check as to why it failed. The bot wasn't opped, everyone is op'd/halfop'd on the channel. Or depending on the [+/-]mute switch everyone was/wasn't voice'd already. Apart from that, the script is complete untested by me and this is only based on what the code is checking. |
Don't get it sorry ... _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
TCL_no_TK Owner

Joined: 25 Aug 2006 Posts: 509 Location: England, Yorkshire
|
Posted: Fri Oct 12, 2007 6:58 pm Post subject: |
|
|
How much testing have you done? The script check's that the people that need giving +v are not:the bot
have +o
have +h
have +v already or if they need to be given -v then it will also check if they have no voice. _________________ TCL the misunderstood |
|
| Back to top |
|
 |
Fire-Fox Master

Joined: 23 Sep 2006 Posts: 270 Location: /dev/null
|
Posted: Sat Oct 13, 2007 4:59 am Post subject: |
|
|
| TCL_no_TK wrote: | How much testing have you done? The script check's that the people that need giving +v are not:the bot
have +o
have +h
have +v already or if they need to be given -v then it will also check if they have no voice. |
Hey why is that i believe that guys are talking the wrong setup here nothing bad at all...
the only thing i need i something that removes +v when i type +mute in the chat and a function that give +v when i type -mute ( pub commands) nothing more or less like i mute funktion for all users on the chat...
Hope you guys understand  _________________ GreatZ
Fire-Fox | Denmark
Scripts: Relay | Store Text | TvMaze |
|
| Back to top |
|
 |
|