Vhost Bot

By ibbz on Mar 25, 2006

This script is made for unreal ircd's.
It allows people to add a vhost for user.
to add user to ur allow list (in order for u to set vhost). right click nick "Add To Allowed Vhost"
now the user can type !vhost .
thats basically it

on *:LOAD: {
  { set %allowedvhosters $me }
}
on *:TEXT:!Vhost *:#channel: {
  if ($nick !isin %allowedvhosters) { msg $chan $nick , You Do Not Have Access To This Script, PLease Pm Me About Axx | goto endvhost }
  if ($2 == $null) { msg $chan Who is getting a vhost set $nick $+ ? | goto endvhost }
  if ($2 !ison $chan) { msg $chan Who is $2 $nick $+ ? | goto endvhost }
  { msg $chan $gettok($address($nick,8),1,64) is attempting to change a vhost }
  if (cunt isin $3) { goto endvhost }
  if (fuck isin $3) { goto endvhost }
  if (sex isin $3) { goto endvhost }
  if (porn isin $3) { goto endvhost }
  if (gay isin $3) { goto endvhost }
  if (ghee isin $3) { goto endvhost }
  if (ghey isin $3) { goto endvhost }
  if ($chr(64) isin $3) { goto hostillegalcharacter }
  if ($3 != $null) { goto addvhost }
  else {
    { msg $chan No Host set! }
    { goto endvhost }
  }
  :addvhost {
    { hs setall $2 $3- }
    { msg $chan $3- set as $nick $+ 's Vhost. }
    { setvoiceall $2 }
    { goto endvhost }
  }
  :hostillegalcharacter {
    { msg $chan $3- contains an illegal character. (Vhost cannot be set) }
    { goto endvhost }
  }
  :endvhost {
  }
}
menu nicklist {
  -
  Add To Allowed Vhost: { set %allowedvhosters $$1 %allowedvhosters }
  Clear Allowed Vhost: { set %allowedvhosters $null }
  -
}

Comments

Sign in to comment.
AdrianF   -  May 23, 2008

ok
it works now.
but some stuff is wrong.
try and find it

 Respond  
AdrianF   -  May 23, 2008

I Have Hostserv.
i use it 2.
the script just dunt work

 Respond  
Noutrious   -  May 23, 2008

\"i use this snippet too. recomend for all :P\"
well, i think so - if you have scripted it! Or is this ripped?

 Respond  
EL   -  May 23, 2008

Strange lookin way to code=\

 Respond  
napa182   -  May 22, 2008

even if the network had hostserv alot only allow ircop or netadmins to set Vhosts

also

on *:TEXT:!Vhost *:#channel: {

change the #channel to the channel you want to use it on

 Respond  
guest598594   -  May 22, 2008

You shuold be a little more specific than \"doesn\'t work\".

The network you\'re on probably doesn\'t have HostServ.

 Respond  
AdrianF   -  May 22, 2008

Fix plz
i wood use this if it worked

 Respond  
AdrianF   -  May 22, 2008

Doesnt work

 Respond  
nyfi   -  Jun 22, 2007

KuTsuM, it is for unrealIRCd, and not for Anope, anope is a service, this is not realy needed if you have services, i would use this if i dident have services but because i do, i see no point in it, but good work.

 Respond  
Noutrious   -  May 10, 2006

I have something like this, but for UnrealIRCd.. Maybe will post in..

 Respond  
Naemuti   -  May 10, 2006

doesn\'t see a point to this
Also, the banned words in a vhost thing should be a $read command.

 Respond  
KuTsuM   -  Mar 25, 2006

You mean it\'s made for Anope IRC Services, not Unreal.

 Respond  
Scruffy   -  Mar 25, 2006

Yay Lol, now i have a other bot for my server :D

 Respond  
ibbz   -  Mar 25, 2006

i use this snippet too. recomend for all :P

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.