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.

own userlist & invite script

Old posts that have not been replied to for several years.
Locked
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

own userlist & invite script

Post by esix »

hi,
ok i have this idea about my channel in ircnet (i got the idea from torrentbits channel). is there a way to build a script like this.

1. i add host *!*@127.0.0.1 to own userlist (txt file?).
2. user signs up (signup nick pass). (only once then he has pass).
3. user with host *!*@127.0.0.1 logins (/msg bot login nick pass).
4. bot invites this user to the channel end notices him with Access Granted message).

can anyone help me with that?

thanks

---- Edit

ok, i'm making the script on my own, it will check for H flag in userfile and if user has that flag he will be invited to the channel but if anyone could help me how to make it work like /msg botnick login <code> then pls tell :) (i will publish this script public when it will be done:D) i found that passwdok in commands.doc but can't get it to work :roll:
Last edited by esix on Thu Sep 23, 2004 12:05 pm, edited 2 times in total.
The End
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

There are alot of public command scripts, such as LOL's tcl, and others which have this feature and do all your required tasks uptill step 3. They add users to certain access levels in channels and globally and users can access certain type of commands depending upon their access.

Once the user logs in, like identifies his password set on his host like: /msg bot auth <pass> then after identification you can make the bot invite the user to the channel. Now you would have to define the channels which the user has access on. If there are more than one, use a foreach loop and invite him on all places.

putserv "INVITE $nick $chan"

Then there are help commands for each level of access added in the bot you can make that proc fire, or you can simply make your own. After that you can make your custom proc trigger after you have sent the invitation for the user to join the channel.

puthelp "NOTICE $nick :Availiable commands for access level 500 are:"
puthelp "NOTICE $nick :!op <nick>"
puthelp "NOTICE $nick :!deop <nick>"
............. and so on.

This way you can modify previously built scripts to fit your own needs, rather than start from scratch. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

Post by esix »

no no, i don't want no other commands, just when user logins he gets invited to channel (only 1 chann). will try to modify that script ;)
The End
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Here is something similar and of the nature.
You can modify this, only a few things needed to be changed and one or two lines need to be added.
MD5 login script - Makes using your public admin triggers lots safer by using the flag "Z" to bind to instead of "n". Once you login, the script adds the flag "Z". If your nick changes or if you part the channel, the flag will be taken from you.
http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=943

I think, I can only guide till here, not build the entire script for you, since a similar copy of it is availiable and you only need to ehance it a bit more. :mrgreen:
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
esix
Voice
Posts: 39
Joined: Thu Aug 12, 2004 11:16 am
Location: [esix@localhost]
Contact:

Post by esix »

thanks awyeah :) i will try to do this today, i don't want that. i want to try something on my own :)
The End
Locked