| View previous topic :: View next topic |
| Author |
Message |
MMDollar Voice
Joined: 04 Mar 2006 Posts: 8 Location: Bulgaria/Bourgas
|
Posted: Mon Mar 13, 2006 12:41 pm Post subject: need a little help with voicebitch.tcl |
|
|
I don't know how to make if a bot voices a user the other ones to devoice him or somehow to make if someone wan't to use the command voice from the bot he has to have flag H
here is my code :
| Code: | bind mode - * mode:bitchie_staff
proc mode:bitchie_staff {nick uhost handle channel mchange theone} {
global channels botnick
if {$mchange == "+v" || $mchange == "+v-o"} {
if {[matchattr [nick2hand $theone] b] || [matchattr $handle H] || [matchattr [nick2hand $theone] H]} { return 0 }
if {[matchattr $handle b]} {
putserv "MODE $channel -v $theone"
return 0
}
putserv "MODE $channel -ov $nick $theone"
putserv "kick $channel $nick :Нямате право да давате voice (глас).Забранена е тази опция в канала!"
}
} | [/code] |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Mar 14, 2006 12:56 pm Post subject: Re: need a little help with voicebitch.tcl |
|
|
| MMDollar wrote: | I don't know how to make if a bot voices a user the other ones to devoice him or somehow to make if someone wan't to use the command voice from the bot he has to have flag H
|
I did not get what you're trying to explain but I can tell you one thing about the mode bind. The mode bind catches one mode change at a time which means +v-o will never be equal to $mchange. To catch +v you can use this:
| Code: | | bind mode - "* +v" proc |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|