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 nick vhost.you.choose
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
Repdientu
Voice


Joined: 30 Apr 2009
Posts: 33
Location: Viet Nam

PostPosted: Tue Jul 07, 2020 9:14 am    Post subject: !vhost nick vhost.you.choose Reply with quote

Hello

i want to use public command to use on #mychan (my bot has operator)
Eg: !vhost nick nick.vhost.choose

can you help me ?
Thank you
Back to top
View user's profile Send private message Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Tue Jul 07, 2020 10:03 am    Post subject: Reply with quote

Your eggdrop needs to be ircop on the network, not just operator on your chan to do that.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Repdientu
Voice


Joined: 30 Apr 2009
Posts: 33
Location: Viet Nam

PostPosted: Tue Jul 07, 2020 10:05 am    Post subject: Reply with quote

CrazyCat wrote:
Your eggdrop needs to be ircop on the network, not just operator on your chan to do that.


yes, my bot is ircops on network. Can you help me ?
Back to top
View user's profile Send private message Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 941

PostPosted: Tue Jul 07, 2020 8:42 pm    Post subject: Reply with quote

What ircd are you using and what services?
Back to top
View user's profile Send private message
Repdientu
Voice


Joined: 30 Apr 2009
Posts: 33
Location: Viet Nam

PostPosted: Wed Jul 08, 2020 5:28 am    Post subject: Reply with quote

simo wrote:
What ircd are you using and what services?


i am using Unrealircd and anope 2.0.6
Back to top
View user's profile Send private message Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 941

PostPosted: Wed Jul 08, 2020 8:30 am    Post subject: Reply with quote

you could take a look at:

http://forum.egghelp.org/viewtopic.php?t=13836&highlight=vhost

and

http://forum.egghelp.org/viewtopic.php?t=20311&highlight=vhost

i would use hostserv wich is available from anope to have vhost set permanent
if thats what you look for if u seek vhost per session you could use ircds chghost command to set vhosts on users
Back to top
View user's profile Send private message
Repdientu
Voice


Joined: 30 Apr 2009
Posts: 33
Location: Viet Nam

PostPosted: Thu Jul 09, 2020 6:36 am    Post subject: Reply with quote

simo wrote:
you could take a look at:

http://forum.egghelp.org/viewtopic.php?t=13836&highlight=vhost

and

http://forum.egghelp.org/viewtopic.php?t=20311&highlight=vhost

i would use hostserv wich is available from anope to have vhost set permanent
if thats what you look for if u seek vhost per session you could use ircds chghost command to set vhosts on users


i have read it. but how to set !vhost to another nick by Master/Owner ?
Back to top
View user's profile Send private message Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 941

PostPosted: Thu Jul 09, 2020 1:12 pm    Post subject: Reply with quote

you didnt explain yet onder what conditions vhosts are set and by whom
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Thu Jul 09, 2020 1:56 pm    Post subject: Reply with quote

If you want to set vhost using services (as hostserv), it will be complicated because you have to ensure the user is registered.
If you want to use CHGHOST, the script is:
Code:
bind pub n|- !vhost chghost
proc chghost {nick uhost handle chan text} {
   set args [split $text]
   putserv "CHGHOST $args[0] $args[1]"
}

Note that it's the basics, no control are made in this short proc.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Thu Jul 09, 2020 2:30 pm    Post subject: Reply with quote

Um why not use the anope module bs_fantasy_vhost2 made by azander?
I'll be helpful and post the link Rolling Eyes

https://modules.anope.org/index.php?page=view&id=268

or do as the fellas above me said, up to you Razz
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
caesar
Mint Rubber


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

PostPosted: Fri Jul 10, 2020 12:46 am    Post subject: Reply with quote

What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff. Smile

Anyway, here's something:
Code:

bind pub mn !vhost change:vhost
   
proc change:vhost {nick uhost hand chan text} {
   if {[scan $text {%s%s} user host] != 2} {
      puthelp "NOTICE $nick :Error, sytnax is: !vhost <nick> <vhost>"
      return
   }
   puthelp "CHGHOST $user $host"
   puthelp "NOTICE $nick :Changed $user host to $host"
}

_________________
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
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Fri Jul 10, 2020 1:48 am    Post subject: Reply with quote

caesar wrote:
What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff. Smile

it was the end of day, I used different languages all the day... confused Smile
Or I'm writing a new version of tcl Smile
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


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

PostPosted: Fri Jul 10, 2020 5:54 am    Post subject: Reply with quote

No problem, i figured it has to be something like that. Smile
_________________
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
Repdientu
Voice


Joined: 30 Apr 2009
Posts: 33
Location: Viet Nam

PostPosted: Fri Jul 10, 2020 6:54 am    Post subject: Reply with quote

Thank @All for support. Can check user registered is difficult for me .hummm
Back to top
View user's profile Send private message Visit poster's website
simo
Owner


Joined: 22 Mar 2015
Posts: 941

PostPosted: Fri Jul 10, 2020 8:12 am    Post subject: Reply with quote

the codes in the urls i posted do exactly that checking if user has a registered nick on join of vhost channel

also if you want to have eggdrop set vhost via hostserv you need to make sure eggdrop has an operblock in anope and perhaps has superadmin that way you can have eggdrop assign vhost to users via anopes hostserv


Last edited by simo on Fri Jul 10, 2020 8:27 am; edited 1 time in total
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
Goto page 1, 2  Next
Page 1 of 2

 
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