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.

global need-op need-unban need-invite

Old posts that have not been replied to for several years.
Locked
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

global need-op need-unban need-invite

Post by CosmicD »

Hello,

Can you set globals like this the same way that you can set global-flood-chan etc ?

for example

global-need-invite putserv "NOTICE K :invite $chan" ?

and then it changes to the correct channel each time you create a new one ?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

need-invite specifies a channel if i remember correctly.

Code: Select all

bind need - "% invite" k_invite
proc k_invite { chan } {
    putserv "NOTICE K :invite $chan"
}
I think that should work for you :wink:
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

Post by CosmicD »

hello,

problem with that is that i actually have uncommented binds like that in my K tcl (to log in etc)

but then it's always going to apply it globally to each channel, but the bot isnt allowed to be opped on each channel so its going to bez flooding the service and i'm going to get problems;..

what i meant was, if it's possible to have some kind of template that you can set into the main config file, and then it will apply those variables on each channel that it joins, but it can also be disabled on that chan,

so my problem is, i need a global routine that acts as a template for sepparate channels, not a global routine that is always constant :)
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

that proc is for inviting itself into a channel not opping itself.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

Post by CosmicD »

i know, i would change it accordinly but i'm afraid it will always try to execute this proc, even when you individually try to set settings on a channel ?
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

you have lost me mate.

That proc would only be executed if it could not gain access to a channel.

do you want a proc for opping in specific channels also?
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

Post by CosmicD »

nope, i do that manually now, whenever someone requests the bot on a channel i manually input need op and need invite, but i'd like to automate that process but not globally, because then it seems that you can't make the bot discard a specific channel, so it would always flood the chanserv.. lol dont know how to further explain it......
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

Well for the invite proc it shouldn't spam chanserv unless your bot is kicked from a chan on an extremely regular basis and could leave it set to a global function.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
C
CosmicD
Op
Posts: 102
Joined: Sat Dec 11, 2004 3:46 pm

Post by CosmicD »

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

Post by awyeah »

Here is a small script I made earlier ago, it combines all the need-* functions of an eggdrop. This is quite handy if you use need functions on your eggdrop.
Will trigger when your eggdrop bot needs an op/unban/invite/limit/key on a channel. Requests ChanServ to reop itself when it is deoped, and unban itself when it is banned and it would also invite itself when channels are set to invite-only, have a low channel limit or unknown channel key set. See extended description.
http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1023
·­awyeah·

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