| View previous topic :: View next topic |
| Author |
Message |
CyberWar Voice
Joined: 04 Feb 2008 Posts: 36
|
Posted: Sun Apr 20, 2008 9:45 pm Post subject: Vhost Script |
|
|
Hi all i've downloaded a vhost script and i've included that one, but how works this script? i try to type: !vhost bla@bla.com but the bot doesnt write back. Can some one tell me that command?
| Code: | ##
# vHost Relay - Get_A_Fix (ashnet/abjects)
##
setudef flag vhost
set debugnick "Global"
set vhostchan "#vhost"
bind pub - !vhost chanset:vhost
proc chanset:vhost {n u h c t} {
if {[matchattr $h o]} {
if {[lindex $t 0] == "on"} {
channel set $c +vhost
puthelp "PRIVMSG $c :Enabled Vhost Relay."
}
if {[lindex $t 0] == "off"} {
channel set $c -vhost
puthelp "PRIVMSG $c :Disabled Vhost Relay."
}
}
}
bind pubm - * vhost:output
proc vhost:output {nick uhost hand chan text} {
global vhostchan debugnick
if {[lsearch -exact [split [string tolower $debugnick]] [string tolower $nick]] != -1} {
if {[lsearch -exact [channel info $chan] +vhost] != -1} {
if {([string match -nocase "*vhost*" $text]) && ([string match -nocase "*requested*" $text])} {
set requester [lrange $text 2 end]
putquick "PRIVMSG $vhostchan :\002New vHost\002: $requester"
}
if {([string match -nocase "*request*" $text]) && ([string match -nocase "*activated*" $text])} {
set requester [lindex $text 3]
set activeoper [lindex $text 6]
putquick "PRIVMSG $vhostchan :\002vHost Activation\002: $requester - Activated by: $activeoper - $requester, please type: /hostserv on"
}
if {([string match -nocase "*request*" $text]) && ([string match -nocase "*rejected*" $text])} {
set requester [lindex $text 3]
set requested [lrange $text 4 end]
putquick "PRIVMSG $vhostchan :\002vHost Rejected\002: $requester - $requested"
}
}
}
}
putlog "Loaded: vHost Relay.." |
|
|
| Back to top |
|
 |
uffs Voice
Joined: 17 Apr 2008 Posts: 14 Location: 6°10.5S-106°49.7E
|
Posted: Sun Apr 20, 2008 10:36 pm Post subject: |
|
|
on DCC :
| Code: | | .chanset #channel +vhost |
did you ? |
|
| Back to top |
|
 |
CyberWar Voice
Joined: 04 Feb 2008 Posts: 36
|
Posted: Mon Apr 21, 2008 5:49 pm Post subject: |
|
|
| doesnt work |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Mon Apr 21, 2008 8:33 pm Post subject: |
|
|
| CyberWar wrote: | | doesnt work |
Paste the result(s) of:
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
CyberWar Voice
Joined: 04 Feb 2008 Posts: 36
|
Posted: Tue Apr 22, 2008 6:33 pm Post subject: |
|
|
That was all
| Code: | .set errorInfo
Currently: |
He dont write more |
|
| Back to top |
|
 |
Get_A_Fix Master

Joined: 07 May 2005 Posts: 206 Location: New Zealand
|
Posted: Mon Dec 17, 2012 9:45 pm Post subject: |
|
|
ummm, This script explains what to do...
You type; !vhost on <- inside your #services channel, which should have logchan on - /operserv set logchan on
Then, it will pipe whatever Global output is sent to #services.
That is all the script does, relay the function that vhost has been requested/activated/rejected. I have since updated this version, my current one does a bit more.
If you want a script that does !vhost a.vhost.here.to.set .... then try a different script. _________________ We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Tue Dec 18, 2012 1:21 am Post subject: |
|
|
It's actually:
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
|