Before beginning, excuse me everyone for my language, I'm french and my last years in school were a long time ago.
I come here because I haven't answer in french forums.
So, you'll be my last chance.
I 'll try to explain you my problem.
I have a phpbb forum on a server.
On another server, I have an irc server running with Unrealircd and one Eggdrop.
I've closed any channel for users who aren't registered with Nickserv (Anope).
I've have just leave an acces for anyone on one channel where Eggdrop staying.
On my phpbb website, I've written un page.php wich is listing members.
I've removed authentification session to make it more easylier.
Now, my problem....
I have the idea but I dont know how scritping it.
I'd like my Eggdrop, on user join, geturl and :
- if user is a phpbb member, do action 1 (anything).
if user isn't a phpbb member so action 2 (kick et remove nick to Anope nick.db).
I'm not very fine with tcl scripting. I understand this language but I don't know how to make it.
Here, the beginning of the code :
Code: Select all
bind join - * join_tous
proc join_tous {nick host hand chan} {
global botnick verifie
if {$chan != "*"} {
package require http;
set thepage [http::data [set token [http::geturl "www.example.com"]]];
http::cleanup $token;
Thanks a lot to everyone will answer.
Excsue me again for my english.
(....and excuse me too if franch win Irland )