| View previous topic :: View next topic |
| Author |
Message |
Repdientu Voice
Joined: 30 Apr 2009 Posts: 33 Location: Viet Nam
|
Posted: Tue Jul 07, 2020 9:14 am Post subject: !vhost nick vhost.you.choose |
|
|
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 |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
Repdientu Voice
Joined: 30 Apr 2009 Posts: 33 Location: Viet Nam
|
Posted: Tue Jul 07, 2020 10:05 am Post subject: |
|
|
| 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 |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Tue Jul 07, 2020 8:42 pm Post subject: |
|
|
| What ircd are you using and what services? |
|
| Back to top |
|
 |
Repdientu Voice
Joined: 30 Apr 2009 Posts: 33 Location: Viet Nam
|
Posted: Wed Jul 08, 2020 5:28 am Post subject: |
|
|
| simo wrote: | | What ircd are you using and what services? |
i am using Unrealircd and anope 2.0.6 |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
|
| Back to top |
|
 |
Repdientu Voice
Joined: 30 Apr 2009 Posts: 33 Location: Viet Nam
|
Posted: Thu Jul 09, 2020 6:36 am Post subject: |
|
|
i have read it. but how to set !vhost to another nick by Master/Owner ? |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Thu Jul 09, 2020 1:12 pm Post subject: |
|
|
| you didnt explain yet onder what conditions vhosts are set and by whom |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Thu Jul 09, 2020 1:56 pm Post subject: |
|
|
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 |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Thu Jul 09, 2020 2:30 pm Post subject: |
|
|
Um why not use the anope module bs_fantasy_vhost2 made by azander?
I'll be helpful and post the link
https://modules.anope.org/index.php?page=view&id=268
or do as the fellas above me said, up to you  _________________ ComputerTech |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Jul 10, 2020 12:46 am Post subject: |
|
|
What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff.
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 |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Fri Jul 10, 2020 1:48 am Post subject: |
|
|
| caesar wrote: | What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff.  |
it was the end of day, I used different languages all the day... confused
Or I'm writing a new version of tcl  _________________ 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 |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Jul 10, 2020 5:54 am Post subject: |
|
|
No problem, i figured it has to be something like that.  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
Repdientu Voice
Joined: 30 Apr 2009 Posts: 33 Location: Viet Nam
|
Posted: Fri Jul 10, 2020 6:54 am Post subject: |
|
|
| Thank @All for support. Can check user registered is difficult for me .hummm |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Fri Jul 10, 2020 8:12 am Post subject: |
|
|
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 |
|
 |
|