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.

Setting up the need-op command

Old posts that have not been replied to for several years.
Locked
T
Tzvika-Pick

Setting up the need-op command

Post by Tzvika-Pick »

Hello,

I am try to set my new eggdrop to give me a privte msg when it needs ops.

I gave this command on the partyline:
.chanset #????? need-op { PUTSERV "PRIVMSG Tzvika-Pick :Test!" }

But after a few seconds, I get this error on the partyline:
invalid command name " PUTSERV "PRIVMSG Tzvika-Pick :Test!" "
I'm lost! What's wrong? If there any newbies FAQ for this?
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Just use putserv. Tcl is case-sensitive.
T
Tzvika-Pick

Post by Tzvika-Pick »

Hmm.. still doesn't work...
.chanset #???? need-op { putserv "PRIVMSG Tzvika-Pick :Test!"}
Successfully set modes { need-op { { putserv "PRIVMSG Tzvika-Pick :Test!"} } } on #????.
#Tzvika-Pi# chanset #???? need-op { { putserv "PRIVMSG Tzvika-Pick :Test!"} }
Tcl error in script for 'need-op':
invalid command name " putserv "PRIVMSG Tzvika-Pick :Test!""
Any other ideas?
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

Try:

.chanset #????? need-op putserv "PRIVMSG Tzvika-Pick :Test!"

And aswell, look this:

.chanset #???? need-op { putserv "PRIVMSG Tzvika-Pick :Test!"}
Successfully set modes { need-op { { putserv "PRIVMSG Tzvika-Pick :Test!"} } } on #????.

After Test!" there is }.You need to put one space free.
T
Tzvika-Pick

Post by Tzvika-Pick »

Allright! It worked just great!

Thanks alot! :)

One more question, if that's allright..
I want the eggdrop to check if the user Tzvika-Pick is online, before sending the PRIVMSG. How can it be done?
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

Thats my only idea:
onchan <nickname> [channel]
Returns: 1 if someone by that nickname is on the specified channel (or
any channel if none is specified); 0 otherwise
Module: irc
T
Tzvika-Pick

Post by Tzvika-Pick »

Well, excuse my funny newbies questions, but I have one more question...

I am trying to make the bot send two msgs to two diffrent nicks. How do I put both need-op commands for the same channel??

Is there any kind of manual for me to read?
d
dollar
Op
Posts: 178
Joined: Tue Oct 28, 2003 3:47 pm
Location: Netherlands

Post by dollar »

]Kami[ wrote:Try:

.chanset #????? need-op putserv "PRIVMSG Tzvika-Pick :Test!"

And aswell, look this:

.chanset #???? need-op { putserv "PRIVMSG Tzvika-Pick :Test!"}
Successfully set modes { need-op { { putserv "PRIVMSG Tzvika-Pick :Test!"} } } on #????.

After Test!" there is }.You need to put one space free.
Eh? You need not use {}'s at all... ""s are fine...
dollar (or something similar) at:
#eggdrop / #tcl - undernet
#egghelp / #tcl / #eggtcl - efnet
#eggdrop.support / #tcl - quakenet
#eggdrop - ircnet
T
Tzvika-Pick

Post by Tzvika-Pick »

Yeah, I know that already :)

Any idea about my other questions? How do I make the egg send 2 msgs and where can I find some reading stuff about this?
User avatar
strikelight
Owner
Posts: 708
Joined: Mon Oct 07, 2002 10:39 am
Contact:

Post by strikelight »

http://www.suninet.nl/tclguide/
http://www.tcl.tk/man/
and tcl-commands.doc in your eggdrop's doc directory.
Locked