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 Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

Vhost Script

Post by CyberWar »

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: Select all

##
# 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.."
u
uffs
Voice
Posts: 14
Joined: Thu Apr 17, 2008 9:18 pm
Location: 6°10.5S-106°49.7E

Post by uffs »

on DCC :

Code: Select all

 .chanset #channel +vhost 
did you ?
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

Post by CyberWar »

doesnt work
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

CyberWar wrote:doesnt work
Paste the result(s) of:

Code: Select all

.set errorInfo
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
C
CyberWar
Voice
Posts: 36
Joined: Mon Feb 04, 2008 4:49 am

Post by CyberWar »

That was all

Code: Select all

.set errorInfo
Currently:
He dont write more
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

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.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

It's actually:

Code: Select all

.set $errorInfo
Once the game is over, the king and the pawn go back in the same box.
Post Reply