egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

need a little help with voicebitch.tcl

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
MMDollar
Voice


Joined: 04 Mar 2006
Posts: 8
Location: Bulgaria/Bourgas

PostPosted: Mon Mar 13, 2006 12:41 pm    Post subject: need a little help with voicebitch.tcl Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Mar 14, 2006 12:56 pm    Post subject: Re: need a little help with voicebitch.tcl Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber