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.

Vhost

Old posts that have not been replied to for several years.
Locked
S
StaticZone
Voice
Posts: 3
Joined: Wed Apr 13, 2005 5:09 am
Location: uk
Contact:

Vhost

Post by StaticZone »

hi
i'm looking for a Tcl Script that can provide vhost using hostserv on services any time a users join #vhost.. do a !request vhost.here.net.. so that hostserv can set it instead the admin of the network will have to set for each user..


Anyone can help me out


Thanks

Rishi

Admin Team

StaticZone IRc networks
User avatar
^DooM^
Owner
Posts: 772
Joined: Tue Aug 26, 2003 5:40 pm
Location: IronForge
Contact:

Post by ^DooM^ »

This should do something like you wanted.

Code: Select all

bind pub - !request request:vhost

# set channel name here
set vhostchan "#vhost"

proc request:vhost { nick uhost hand chan text } {
    global vhostchan
    if {[string tolower $chan] == [string tolower $vhostchan]} {
        if {$text != ""} {
            putserv "PRIVMSG hostserv :chhost $nick $text"
        }
    }
}
I have no idea how hostserv works so I guessed at the command.

Also just be careful using this as anyone can set themselves a vhost and could clone another users real host and get them into trouble.

HTH
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
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

I believe there should be a complex regexp and other check mechanics to check if $text is a valid hostname, to check if it matches an ISP revers dns (what it shouldn't. you could check the revers DNS of the given hostname, if it matchs, its no valid vhost. maybe you even do a ip check on all current online users to ensure he doesnt want to impose someone else), to check if another user outside of the nick group/link already uses that host (what it shouldnt either). No bad idea would be a fix delay of 1h and a limit of 1 request per 24h or something like that (you might give admins the ability to get a list of the current queue and manuelly deny single ones). besides all of that noone actually should be able to see the exact mechanices to minimilize the chance of abusing. As you can see, this script will take some time to be written and adjusted to your desire. I would suggest to get an TCL scripter into your staff :D.
If you don't mind all of that... use Dooms Code :P.
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Locked