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 

Voice script

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


Joined: 14 Jan 2006
Posts: 63

PostPosted: Tue Feb 07, 2006 4:50 pm    Post subject: Voice script Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Feb 07, 2006 7:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sat Feb 11, 2006 11:17 am    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Feb 11, 2006 12:13 pm    Post subject: Reply with quote

use o|o instead of |o.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Feb 12, 2006 8:01 am    Post subject: Reply with quote

Thank you very much, now works perfectly!!
Back to top
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Feb 12, 2006 9:31 am    Post subject: Reply with quote

I've used .adduser command to add to the bot's list the opped user, but it gives them +v again.... Question Crying or Very sad
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Feb 12, 2006 10:41 am    Post subject: Reply with quote

Cr4sh wrote:
I've used .adduser command to add to the bot's list the opped user, but it gives them +v again.... Question Crying or Very sad

Their hosts probably changed.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Cr4sh
Halfop


Joined: 14 Jan 2006
Posts: 63

PostPosted: Sun Feb 12, 2006 10:51 am    Post subject: Reply with quote

Ok, this's possible i don't verify it again, then there's a way to resolve?
Back to top
View user's profile Send private message Visit poster's website
dq
Voice


Joined: 03 Apr 2006
Posts: 32

PostPosted: Thu Apr 06, 2006 11:41 am    Post subject: Re: Voice script Reply with quote

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
View user's profile Send private message
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