egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Vhost Script

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Sun Apr 20, 2008 9:45 pm    Post subject: Vhost Script Reply with quote

Hi all i've downloaded a vhost script and i've included that one, but how works this script? Confused 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
View user's profile Send private message
uffs
Voice


Joined: 17 Apr 2008
Posts: 14
Location: 6°10.5S-106°49.7E

PostPosted: Sun Apr 20, 2008 10:36 pm    Post subject: Reply with quote

on DCC :

Code:
 .chanset #channel +vhost


did you ?
Back to top
View user's profile Send private message
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Mon Apr 21, 2008 5:49 pm    Post subject: Reply with quote

doesnt work
Back to top
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Mon Apr 21, 2008 8:33 pm    Post subject: Reply with quote

CyberWar wrote:
doesnt work

Paste the result(s) of:
Code:
.set errorInfo

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
CyberWar
Voice


Joined: 04 Feb 2008
Posts: 36

PostPosted: Tue Apr 22, 2008 6:33 pm    Post subject: Reply with quote

That was all

Code:
.set errorInfo
Currently:


He dont write more
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Mon Dec 17, 2012 9:45 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue Dec 18, 2012 1:21 am    Post subject: Reply with quote

It's actually:
Code:

.set $errorInfo

_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber