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.

Request OP

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Request OP

Post by Arkadietz »

When eggdrop join in chanel immediately require OP ( via command /msg cs chanserv op #channel ) from services for example host ChanServ!ChanServ@services.bg
On a unix system everything is a file ; if something is not a file , it is a proccess.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Request OP

Post by willyw »

Arkadietz wrote:When eggdrop join in chanel immediately require OP ( via command /msg cs chanserv op #channel ) from services for example host ChanServ!ChanServ@services.bg

http://www.egghelp.org/commands/channels.htm#chaninfo
and see: need-op

Will that do what you need?


Or:
Can you register the bot's nick with Nickserv?
Then have the bot identify with Nickserv upon logging in to irc server.
Next, add bot's nick to Chanserv's auto-op list for your channel.
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Post by Arkadietz »

this not work for me.. cuz now have a little lag from 10sec to 1 min before getting a op. So have to do it immediately.

Show example aftrer .restart

[16:20:29] * Elionor (~kiril@217.75.136.110) has left #Copacabana
[16:20:33] * Elionor (~kiril@217.75.136.110) has joined #Copacabana
[16:20:49] * ChanServ sets mode: +o Elionor

This is a lot of time before getting an op.
On a unix system everything is a file ; if something is not a file , it is a proccess.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Request OP

Post by willyw »

willyw wrote: Or:
Can you register the bot's nick with Nickserv?
Then have the bot identify with Nickserv upon logging in to irc server.
Next, add bot's nick to Chanserv's auto-op list for your channel.
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Re: Request OP

Post by Arkadietz »

willyw wrote:
willyw wrote: Or:
Can you register the bot's nick with Nickserv?
Then have the bot identify with Nickserv upon logging in to irc server.
Next, add bot's nick to Chanserv's auto-op list for your channel.
The nick is registred with nickserv of course. And bot identify automaticly. Bot is added for level to use only cmdop not autoop ( here is the that, i'm asking )

[11:02:21] -ChanServ- -- Access Levels for [#Copacabana] --
[11:02:22] -ChanServ- Index Level Type Description
[11:02:22] -ChanServ- ----- ----- ---- -----------
[11:02:22] -ChanServ- 1 -1 AUTODEOP Automatic deop/devoice
[11:02:22] -ChanServ- 2 10 AUTOVOICE Automatic voice
[11:02:22] -ChanServ- 3 1 CMDVOICE Use of command VOICE
[11:02:22] -ChanServ- 4 8 ACCESS Allow ACCESS modification
[11:02:22] -ChanServ- 5 2 CMDINVITE Use of command INVITE
[11:02:22] -ChanServ- 6 10 AUTOHALFOP Automatic halfop
[11:02:22] -ChanServ- 7 3 CMDHALFOP Use of command HALFOP
[11:02:22] -ChanServ- 8 6 AUTOOP Automatic op
[11:02:22] -ChanServ- 9 5 CMDOP Use of command OP
[11:02:22] -ChanServ- 10 7 CMDUNBAN Use of command UNBAN
[11:02:22] -ChanServ- 11 6 AUTOKICK Allow AKICK modification
[11:02:22] -ChanServ- 12 8 CMDCLEAR Use of command CLEAR
[11:02:22] -ChanServ- 13 9 SET Modify channel SETs
[11:02:22] -ChanServ- 14 9 SUPEROP All of the above
[11:02:22] -ChanServ- -- End of list --

[11:02:37] -ChanServ- -- Access List for [#Copacabana] --
[11:02:37] -ChanServ- Num Level Hostmask Since last use Added by
[11:02:37] -ChanServ- --- ----- -------- -------------- --------
[11:02:37] -ChanServ- 1 5 Elionor 2m 49s Kiril

The bot have to use cmdop correctly, not autoop!
On a unix system everything is a file ; if something is not a file , it is a proccess.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

In eggdrop.conf find this part, and make it look like below:

Code: Select all

proc evnt:init_server {type} {
  global botnick
  putquick "MODE $botnick +i-ws"
  # this line below may need changing, depending on syntax of services.
  putquick "privmsg nickserv :identify <replace this with password bot uses on that network>"
}
Then get on your bot's partyline, via dcc-chat and do this:

Code: Select all

.chanset #thatchan need-op putquick "privmsg cs :chanserv op #channel" -next
Wallah...
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Post by Arkadietz »

this doesn't work
On a unix system everything is a file ; if something is not a file , it is a proccess.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Check out:

http://forum.egghelp.org/viewtopic.php? ... tify#95379

http://forum.egghelp.org/viewtopic.php? ... tify#95379

Those say essentially the same thing that speechles said. Perhaps another example will be beneficial though.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

Also, check the ChanServ list of nicks on Auto Op list for the channel in question.

Is bot's nick on that list?
S
SmasHinG
Voice
Posts: 29
Joined: Mon Aug 29, 2011 2:58 am

Post by SmasHinG »

willyw wrote:Also, check the ChanServ list of nicks on Auto Op list for the channel in question.

Is bot's nick on that list?
Bot is not on Auto OP list because he don`t want to use auto op. He want just when join bot to channel now ask op from ChanServ.
SmasHinG®
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Post by Arkadietz »

Stop give to me these threads, they're a neccessary. i say it to you again the problem is not in .conf and with settings. egg is added a level only to use cmdop not AUTO OP here is the difference. The main idea is when bot join on #channel to get op via command how i said before. I want a tcl for this and not one of these they're already have here. I want a custom and simple.

Because now, when egg join to the channel after .restart

Show:

[11:06:43] <Kiril> .restart
[11:06:43] <Elionor> [11:06:58] #Kiril# restart
[11:06:43] <Elionor> Restarting.
[11:06:43] <Elionor> [11:06:58] Restarting ...
[11:06:43] <Elionor> [11:06:58] Module unloaded: assoc
[11:06:43] <Elionor> [11:06:58] Module unloaded: console
[11:06:43] <Elionor> [11:06:58] Module unloaded: notes
[11:06:43] <Elionor> [11:06:58] Module unloaded: compress
[11:06:43] <Elionor> [11:06:58] Sending 'share end' to all sharebots...
[11:06:43] <Elionor> [11:06:58] Unloaded sharing module, flushing tbuf's...
[11:06:43] <Elionor> [11:06:58] Module unloaded: share
[11:06:43] <Elionor> [11:06:58] Unloading transfer module, killing all transfer connections...
[11:06:43] <Elionor> [11:06:58] Module unloaded: transfer
[11:06:43] <Elionor> [11:06:58] Module unloaded: irc
[11:06:43] <Elionor> [11:06:58] Module unloaded: ctcp
[11:06:43] <Elionor> [11:06:58] Module unloaded: server
[11:06:43] <Elionor> [11:06:58] Module unloaded: channels
[11:06:43] <Elionor> [11:06:58] Listening at telnet port 6996 (users).
[11:06:43] <Elionor> [11:06:58] Listening at telnet port 9669 (bots).
[11:06:43] <Elionor> [11:06:58] No longer supporting channel #Copacabana
[11:06:43] <Elionor> [11:06:58] Module loaded: channels
[11:06:43] <Elionor> [11:06:58] Module loaded: server
[11:06:43] <Elionor> [11:06:58] Module loaded: ctcp
[11:06:43] <Elionor> [11:06:58] Module loaded: irc
[11:06:43] <Elionor> [11:06:58] Module loaded: transfer (with lang support)
[11:06:43] <Elionor> [11:06:58] Module loaded: share
[11:06:43] <Elionor> [11:06:58] Module loaded: compress
[11:06:43] <Elionor> [11:06:58] Module loaded: notes (with lang support)
[11:06:43] <Elionor> [11:06:58] Module loaded: console (with lang support)
[11:06:43] <Elionor> [11:06:58] Module loaded: assoc (with lang support)
[11:06:43] <Elionor> [11:06:58] TCL | Added
[11:06:43] <Elionor> [11:06:58] TCL | Anti Spam
[11:06:43] <Elionor> [11:06:58] TCL | Anti Flood
[11:06:43] <Elionor> [11:06:58] TCL | Ban Tools
[11:06:43] <Elionor> [11:06:58] TCL | Bind
[11:06:43] <Elionor> [11:06:58] TCL | DiePass
[11:06:43] <Elionor> [11:06:58] TCL | Last Connection
[11:06:43] <Elionor> [11:06:58] TCL | List
[11:06:43] <Elionor> [11:06:58] TCL | Modes
[11:06:43] <Elionor> [11:06:58] TCL | Notice
[11:06:43] <Elionor> [11:06:58] TCL | PartyLine AutoAway
[11:06:43] <Elionor> [11:06:58] TCL | ShakeIT Services
[11:06:43] <Elionor> [11:06:58] TCL | Userinfo
[11:06:43] <Elionor> [11:06:58] All is Ok let's Go..
[11:06:43] <Elionor> [11:06:58] Userfile loaded, unpacking...
[11:06:43] <Elionor> *** [Kiril] Write your future cuz it's your past
[11:06:43] <Elionor> You have no messages.
[11:06:44] <Elionor> [11:06:59] Trying server [irc.archimed.bg]:6667
[11:06:44] <Elionor> [11:06:59] Connected to irc.archimed.bg
[11:06:44] <Elionor> [11:06:59] -NOTICE- *** Looking up your hostname...
[11:06:44] <Elionor> [11:06:59] -NOTICE- *** Checking Ident
[11:06:44] <Elionor> [11:06:59] -NOTICE- *** Couldn't look up your hostname
[11:06:47] <Elionor> [11:07:03] Elionor joined #Copacabana.
[11:06:48] <Elionor> [11:07:03] -ChanServ (ChanServ@services.bg)- [#Copacabana] You're need to relax? You're choose a right channel! Enjoy it here ;)

[11:07:52] * Elionor (~kiril@217.75.136.110) has joined #Copacabana
[11:08:45] * ChanServ sets mode: +o Elionor

Can you see it? It has been 1 minute before he gets it an op.
On a unix system everything is a file ; if something is not a file , it is a proccess.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Yeah, somebody needs to close and lock this thread.

The guy obviously has no clue that a restart you get this delay.
YOU CANNOT WORK AROUND THAT DELAY!

STOP RESTARTING THE BOT! ARE YOU STUPID?

Use .rehash like a normal person would...


So yeah, in short.. *the end*
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

speechles wrote: ...
The guy obviously has no clue that a restart you get this delay.
YOU CANNOT WORK AROUND THAT DELAY!
...

What would happen with a script that, on joining the channel, sends something like
/msg chanserv OP [#channel [nick]]
or whatever the correct syntax is for the server?

Would it not immediately send the op command?


[I too am a bit frustrated, and have lost enthusiasm. But I want to learn about this delay you mention. Thanks ]
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Post by speechles »

Look at the guys log of what the eggdrop is doing during it's restart.

Then look at the very very last line...

[11:07:52] * Elionor (~kiril@217.75.136.110) has joined #Copacabana
[11:08:45] * ChanServ sets mode: +o Elionor

That delay is the amount of time before the tcl event engine is allowed to capture the event that the bot has joined the channel.

So working around it, is ridiculous. Stop restarting your bot so damn often is the answer. Use rehash like a normal person.

His request is hereby irrational. It can never be fufilled. So stop asking.

NOTE: Think of it like starting a car. He wants it to burn the tires off right after starting the car. But you can't do that. You will destroy the engine. It has to "warm up" before you can be that aggressive with it. Eggdrop also needs this "warm up" time when you restart. The answer is stop restarting so often.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

speechles wrote:
...
That delay is the amount of time before the tcl event engine is allowed to capture the event that the bot has joined the channel.
...
Interesting.

Thanks
Post Reply