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.

add user on access list if listed on web

Old posts that have not been replied to for several years.
Locked
User avatar
stere0
Halfop
Posts: 47
Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil

add user on access list if listed on web

Post by stere0 »

I need a script that reads a page in the InterNet with the access list and brings up to date the list in the IRC based on, somebody know some?
[]s
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: add user on access list if listed on web

Post by user »

stere0 wrote:I need a script that reads a page in the InterNet with the access list and brings up to date the list in the IRC based on, somebody know some?
I'm assuming you mean "web page" when you say "page in the InterNet"... You'll need something custom made to parse the html on that page.
Have you ever read "The Manual"?
User avatar
stere0
Halfop
Posts: 47
Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil

o.O

Post by stere0 »

yes, web page.
yes, this web page is written by myself (i can change the code).

do you have a little example??
[]s
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: o.O

Post by user »

stere0 wrote:yes, this web page is written by myself (i can change the code).
In that case, why don't you just put a normal user file on that web server?

Code: Select all

package require http
proc doh {} {
	global userfile
	set x [::http::geturl http://127.0.0.1/your.user]
	if {[::http::ncode $x]==200} {
		file copy -force $userfile $userfile~bak
		set f [open $userfile w]
		puts $f [::http::data $x]
		close $f
		reload
	}
	::http::cleanup $x
}
Have you ever read "The Manual"?
User avatar
stere0
Halfop
Posts: 47
Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil

again

Post by stere0 »

they are in different servers.

But the case is the following one:
I have the list of possible channel operators in a web page, and would like that eggdrop kept the list of the channel brought up to date from the names that are in this page.
[]s
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Re: again

Post by user »

stere0 wrote:they are in different servers.
who are? and what's that got to do with anything?
stere0 wrote:But the case is the following one:
I have the list of possible channel operators in a web page, and would like that eggdrop kept the list of the channel brought up to date from the names that are in this page.
You already said that.
Have you ever read "The Manual"?
User avatar
stere0
Halfop
Posts: 47
Joined: Sun Sep 23, 2001 8:00 pm
Location: Brazil

 

Post by stere0 »

I keep a form in this web page where the people request op, if approved will be listed as operator and eggdrop would automatically add its name in the access list of channel.
[]s
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

ok, so now you've told us 4 times that you have a web page, and user told you how to read from it, so whats the problem ?
Locked