<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/20809" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2020-07-22T00:33:19-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/20809</id>

		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2020-07-22T00:33:19-04:00</updated>

		<published>2020-07-22T00:33:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108768#p108768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108768#p108768"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108768#p108768"><![CDATA[
thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Wed Jul 22, 2020 12:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-16T09:42:29-04:00</updated>

		<published>2020-07-16T09:42:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108746#p108746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108746#p108746"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108746#p108746"><![CDATA[
tnx caesar<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Thu Jul 16, 2020 9:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-07-16T09:24:59-04:00</updated>

		<published>2020-07-16T09:24:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108745#p108745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108745#p108745"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108745#p108745"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> global  scan(chan)     if {$chan != "$scan(chan)"} {      putserv "NOTICE $tls_nick : Don't Use This Command Outside $scan(chan)"      return 0   }</code></pre></div>@simo I see 3 issues with your code:<br>- it should be 'global scan' (notice the lack of <em class="text-italics">(chan)</em> part)<br>- there's no <em class="text-italics">$tls_nick</em> variable<br>- the <em class="text-italics">if {$chan != "$scan(chan)"}</em> will fail when the to names won't be at the upper or lower case, so use <em class="text-italics">string equal -nocase</em> to be sure the stuff will match no matter the case.<br><br>Updated code:<div class="codebox"><p>Code: </p><pre><code>set scan(chan) "#vhost"bind pub mn !vhost change:vhost   proc change:vhost {nick uhost hand chan text} {global scanif {![string equal -nocase $scan(chan) $chan]} {puthelp "NOTICE $nick :Don't Use This Command Outside $scan(chan)"return}if {[scan $text {%s%s} user host] != 2} {puthelp "NOTICE $nick :Error, sytnax is: !vhost &lt;nick&gt; &lt;vhost&gt;"return}puthelp "CHGHOST $user $host"puthelp "NOTICE $nick :Changed $user host to $host"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jul 16, 2020 9:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2020-07-12T00:58:48-04:00</updated>

		<published>2020-07-12T00:58:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108719#p108719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108719#p108719"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108719#p108719"><![CDATA[
thank you, i will try it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Sun Jul 12, 2020 12:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-11T09:22:24-04:00</updated>

		<published>2020-07-11T09:22:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108718#p108718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108718#p108718"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108718#p108718"><![CDATA[
try this:<br><div class="codebox"><p>Code: </p><pre><code>set scan(chan) "#vhost"bind pub mn !vhost change:vhost   proc change:vhost {nick uhost hand chan text} { global  scan(chan)     if {$chan != "$scan(chan)"} {      putserv "NOTICE $tls_nick : Don't Use This Command Outside $scan(chan)"      return 0   }   if {[scan $text {%s%s} user host] != 2} {      puthelp "NOTICE $nick :Error, sytnax is: !vhost &lt;nick&gt; &lt;vhost&gt;"      return   }   puthelp "CHGHOST $user $host"   puthelp "NOTICE $nick :Changed $user host to $host"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jul 11, 2020 9:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-11T08:18:49-04:00</updated>

		<published>2020-07-11T08:18:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108717#p108717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108717#p108717"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108717#p108717"><![CDATA[
yes you can<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Sat Jul 11, 2020 8:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2020-07-10T21:52:39-04:00</updated>

		<published>2020-07-10T21:52:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108716#p108716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108716#p108716"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108716#p108716"><![CDATA[
Thank you. Can i set it work only channel ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jul 10, 2020 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-07-10T13:58:05-04:00</updated>

		<published>2020-07-10T13:58:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108714#p108714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108714#p108714"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108714#p108714"><![CDATA[
Thats True, as simo says the vhost would only be active until the user disconnects  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jul 10, 2020 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-10T11:03:55-04:00</updated>

		<published>2020-07-10T11:03:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108713#p108713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108713#p108713"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108713#p108713"><![CDATA[
only now you provided more info as to what the criteria are and the conditions you work with then indeed caesars code will do the job only the vhosts arent permant so they would have to come to channel to get vhost everytime<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 10, 2020 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-07-10T10:38:01-04:00</updated>

		<published>2020-07-10T10:38:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108712#p108712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108712#p108712"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108712#p108712"><![CDATA[
<blockquote class="uncited"><div>What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Anyway, here's something:<div class="codebox"><p>Code: </p><pre><code>bind pub mn !vhost change:vhostproc change:vhost {nick uhost hand chan text} {if {[scan $text {%s%s} user host] != 2} {puthelp "NOTICE $nick :Error, sytnax is: !vhost &lt;nick&gt; &lt;vhost&gt;"return}puthelp "CHGHOST $user $host"puthelp "NOTICE $nick :Changed $user host to $host"}</code></pre></div></div></blockquote>Caesars Code does exactly that, it only allow's global +m and channel +n to change a user's vhost.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jul 10, 2020 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2020-07-10T08:27:36-04:00</updated>

		<published>2020-07-10T08:27:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108711#p108711</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108711#p108711"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108711#p108711"><![CDATA[
<blockquote class="uncited"><div>the codes in the urls i posted do exactly that checking if user has a registered nick on join of vhost channel</div></blockquote>i not ower the network. i am only ircops on it. i want to make bot to used !vhost to give vhost user on the network too. the codes in your post is set vhost user. but i want to make only ower/master/op of the bot can used this command to give vhost for user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jul 10, 2020 8:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simo]]></name></author>
		<updated>2020-07-10T08:27:45-04:00</updated>

		<published>2020-07-10T08:12:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108710#p108710</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108710#p108710"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108710#p108710"><![CDATA[
the codes in the urls i posted do exactly that checking if user has a registered nick on join of vhost channel<br><br>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<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12505">simo</a> — Fri Jul 10, 2020 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Repdientu]]></name></author>
		<updated>2020-07-10T06:54:20-04:00</updated>

		<published>2020-07-10T06:54:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108709#p108709</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108709#p108709"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108709#p108709"><![CDATA[
Thank @All for support. Can check user registered is difficult for me .hummm<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10625">Repdientu</a> — Fri Jul 10, 2020 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-07-10T05:54:52-04:00</updated>

		<published>2020-07-10T05:54:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108708#p108708</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108708#p108708"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108708#p108708"><![CDATA[
No problem, i figured it has to be something like that. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Jul 10, 2020 5:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2020-07-10T01:48:21-04:00</updated>

		<published>2020-07-10T01:48:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108706#p108706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108706#p108706"/>
		<title type="html"><![CDATA[!vhost nick vhost.you.choose]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108706#p108706"><![CDATA[
<blockquote class="uncited"><div>What's with the $args[0] in there CrazyCat? TCL doesn't know that stuff. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>it was the end of day, I used different languages all the day... confused <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Or I'm writing a new version of tcl <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Jul 10, 2020 1:48 am</p><hr />
]]></content>
	</entry>
	</feed>
