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.
Old posts that have not been replied to for several years.
guest
Halfop
Posts: 52 Joined: Mon Jan 19, 2004 4:15 pm
Post
by guest » Fri Feb 13, 2004 5:25 am
Hi,
I would like to ask: How many commands I can put together when I chanset the "need-op" variable? Now that, I have
.chanset need-op putserv "PRIVMSG nickserv : identify [botnick] [pwd]"; putserv "PRIVMSG chanserv : op [#chan] [botnick]"
and it seems to work fine. But when I set the variable like this (I want the bot to be +ao on the chan, not only +o),
.chanset need-op putserv "PRIVMSG nickserv : identify [botnick] [pwd]"; putserv "PRIVMSG chanserv : op [#chan] [botnick]"; putserv "MODE [chan] +a [botnick]"
I get really weird Tcl errors like ' missing " ', although all quotes are there, or 'command should be PUTSERV "TEXT ?OPTIONS?"', although the syntax is okay, as you can see. So i wanted to ask: Can i put only two commands together, or can there be more commands, too?
Thanks,
Guest
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Fri Feb 13, 2004 8:58 am
All the need-* settings are limited to 160 bytes (iirc), so if you need more you should create and call a proc instead. You might want to check out the need-bind instead
Have you ever read "The Manual"?
guest
Halfop
Posts: 52 Joined: Mon Jan 19, 2004 4:15 pm
Post
by guest » Fri Feb 13, 2004 10:24 am
Well, not really
- i just looked for "need-op"
stere0
Halfop
Posts: 47 Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil
Post
by stere0 » Thu Feb 26, 2004 1:33 pm
You can do something like this:
proc needop {chan} {
putserv "PRIVMSG nickserv : identify [botnick] [pwd]"
putserv "PRIVMSG chanserv : op [#chan] [botnick]"
putserv "MODE [chan] +a [botnick]"
}
channel add #mychannel {
need-op { needop #mychannel }
}
[]s