Code: Select all
########################################################################
# #
# Simple Vhost 1.3 by sLiDer. #
# #
# Just like any other script... load it up... set the channel to #
# what ever channel you want to use the script in #
# .chanset #chan +vhchan. Make sure and set a ircopnick and pass #
# and change <ircopnick> <pass>. Pretty Simple eh? Best used with #
# Anope Services but can easily be converted to use with others. #
# Enjoy :P #
# #
########################################################################
setudef flag vhchan
bind pub - !setvhost pub:vhost
bind notc - * msg:vhchan
bind evnt - init-server oper:connect
proc oper:connect init-server {
putserv "OPER ****** ******"
}
proc pub:vhost {nick host hand chan text} {
if {![channel get $chan vhchan]} {return}
set vhost [lindex $text 0]
if {($vhost == "")} {putserv "PRIVMSG $chan :$nick Please specify a hostname you would like... Try again!"; return}
if {($vhost != "")} {
putserv "PRIVMSG hostserv :set $nick $vhost"
}
}
proc msg:vhchan {nick uhost hand text chan} {
if {[string match -nocase "HostServ" $nick]} {
set line [lrange [split $text] 0 end]
putserv "PRIVMSG $chan :[join $line]"
if {([string match -nocase "*A vhost must*" $line])} {putserv "PRIVMSG $chan :Please use proper format. \(!setvhost ident@vhost.com\)"; return}
putserv "PRIVMSG $chan :To Activate your vhost type /msg hostserv on"
putserv "PRIVMSG $chan :Please part the channel. Thanks."
}
}
putlog "Simple Vhost 1.3 loaded by sLiDer"
I join the channel where I activated the script, I use the commands,
<user> !setvhost testing.vhost
And that's it, no msg in the channel, but in partyline I get this:
Code: Select all
[19:25:36] <bot> [19:25] -HostServ (services@localhost.net)- vhost for user set to testing.vhost.
[19:25:37] <bot> [19:25] [bot!bot@bot.of.bot] vhost for user set to testing.vhost.
[19:25:38] <bot> [19:25] [bot!bot@bot.of.bot] To Activate your vhost type /msg hostserv on
[19:25:39] <bot> [19:25] [bot!bot@bot.of.bot] Please part the channel. Thanks.
Ps. I searched for the author name in the forum, and did not get any results, also as you can see, there are no other contact forms.