This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

is onvoice

Old posts that have not been replied to for several years.
Locked
M
MsCreant

is onvoice

Post by MsCreant »

Can anyone help with changing the is onvoice so that this command will work for anyone in channel.. not just those with +v?? Thanks.



# Here you can write msg, which show when you use !botmail command.
if {[isvoice $tnick $chan]} { puthelp "NOTICE $tnick : To send bot mail type /msg botmail send nick message" }
if {[isvoice $tnick $chan]} { pushmode $chan -v $tnick }
e
egghead
Master
Posts: 481
Joined: Mon Oct 29, 2001 8:00 pm
Contact:

Re: is onvoice

Post by egghead »

MsCreant wrote:Can anyone help with changing the is onvoice so that this command will work for anyone in channel.. not just those with +v?? Thanks.
Simply remove the test for isvoice?

Code: Select all

puthelp "NOTICE $tnick : To send bot mail type /msg botmail send nick message" 
pushmode $chan -v $tnick
M
MsCreant

is onvoice

Post by MsCreant »

I did exactly as you suggested. It still doesn't work. Does anyone know of a simple script that would allow users to access a simple few help commands? All the other public command scripts are a bit too intense for what I need.

Thanks for the help :)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Search the tcl script archive! www.egghelp.org/tcl.htm :lol:

You can find many public commands and channel tool scripts which give users certain access levels, and you can perform commands based on those levels, they also list helps for each users access. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
M
MsCreant

is onvoice

Post by MsCreant »

I've done just that for two days before posting in the forum. I simply need a script that will say one line of text on a public command for all users.

ie: !botmail .. would trigger this line of text To send botmail /msg botmail send <nick> <message>.

There is nothing in all of the scripts I've looked at that can do just this one simple little thing without a load of other "commands". The tell1.tcl can do this but its limited to those who are voiced.

Thank you for your reply.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Here, enjoy babe!

Code: Select all

Usage: !botnick <nick> <message>

Code: Select all

bind pub - !botmail my:procedure

proc my:procedure {nick uhost hand chan text} {
 putquick "PRIVMSG [lindex $text 0] :[lrange $text 1 end]"
}
If you want only OPS to use it then use:
if {([isop [lindex $text 0] $chan])} {
or
bind pub o !botmail my:procedure (#Only for users with +o flag in the bot)

If you want only VOICES to use it then use:
if {([isvoice [lindex $text 0] $chan])} {
or
bind pub v !botmail my:procedure (#Only for users with +v flag in the bot)

If you want OPS and VOICES both to use it then:
if {([isop [lindex $text 0] $chan]) || ([isvoice [lindex $text 0] $chan])} {

If you want every user to use it then, use the bind without any flag:
bind pub - !botmail my:procedure
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
M
MsCreant

is onvoice

Post by MsCreant »

Thanks for the help but it didn't work. Can you think of a simpler script that would just do as I need without all the extra "stuff". I mean someone out there has to be able to write a simple script for this.. :)

Come on help a "BABE" out here boys .. well or girls lol
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I think that little piece of code should work, theres nothing wrong with it. :roll:

There can be nothing simpler than that, it is reduced to the total basics, woman. :mrgreen:

Oops, actually the usage was:

Code: Select all

Usage: !botmail <nick> <message>
I accidently made the trigger !botnick, mistakenly in a hurry.
Use the trigger !botmail that should work! :wink:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked