<?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/21497" />

	<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>2024-04-13T13:42:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-13T13:42:24-04:00</updated>

		<published>2024-04-13T13:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112727#p112727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112727#p112727"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112727#p112727"><![CDATA[
Thank you for your help Crazycat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Sat Apr 13, 2024 1:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-13T08:05:29-04:00</updated>

		<published>2024-04-13T08:05:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112725#p112725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112725#p112725"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112725#p112725"><![CDATA[
Peharps can you try to understand what the code does, read the doc and try to adapt. OR, to say that quicker: learn.<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">bind nick - * checkvoice # name of the called procedure is checkvoiceproc checkvoice {nick uhost handle chan newnick} {   set onchash [md5 [string tolower "${nick}:${chan}"]]   set nnchash [md5 [string tolower "${newnick}:${chan}"]]   if {[isvoice $newnick $chan]} {   # here we check if nick is voiced, isop will check if user is @      pushmode $chan -v $newnick      # removes the v flag      set ::wasvoice($onchash) 1      # we set a temp variable called wasvoice   } elseif {[info exists ::wasvoice($nnchash)] &amp;&amp; $::wasvoice($nnchash)==1} {   # we check if the temp variable exists and is setted to 1      pushmode $chan +v $newnick      # we set the v flag to the user      unset ::wasvoice($nnchash)      # deleting the temp variable   }}</code></pre></div> <strong>script</strong> You have enough comments in the script now to adapt it for @<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sat Apr 13, 2024 8:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-13T04:02:56-04:00</updated>

		<published>2024-04-13T04:02:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112724#p112724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112724#p112724"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112724#p112724"><![CDATA[
bind nick - * checkvoice<br><br>proc checkvoice   <br><br>wasvoice <br><br>What will we do here?<br><div class="codebox"><p>Code: </p><pre><code>bind nick - * checkvoiceproc checkvoice {nick uhost handle chan newnick} {   set onchash [md5 [string tolower "${nick}:${chan}"]]   set nnchash [md5 [string tolower "${newnick}:${chan}"]]   if {[isvoice $newnick $chan]} {      pushmode $chan -v $newnick      set ::wasvoice($onchash) 1   } elseif {[info exists ::wasvoice($nnchash)] &amp;&amp; $::wasvoice($nnchash)==1} {      pushmode $chan +v $newnick      unset ::wasvoice($nnchash)   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Sat Apr 13, 2024 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-12T16:51:38-04:00</updated>

		<published>2024-04-12T16:51:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112723#p112723</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112723#p112723"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112723#p112723"><![CDATA[
By replacing "isvoice" check with "isop" and mode +/-v with +/-o<br><br>Small tip: <a href="https://docs.eggheads.org/using/tcl-commands.html#isop-nickname-channel" class="postlink">https://docs.eggheads.org/using/tcl-com ... me-channel</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Apr 12, 2024 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-12T15:31:21-04:00</updated>

		<published>2024-04-12T15:31:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112722#p112722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112722#p112722"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112722#p112722"><![CDATA[
How can we do it for op?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Fri Apr 12, 2024 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-12T14:41:54-04:00</updated>

		<published>2024-04-12T14:41:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112721#p112721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112721#p112721"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112721#p112721"><![CDATA[
You can do that for the @ (but just op, not aop), I'm not sure you can add the sop.<br>Eggdrop doesn't know these modes, so it can't check if an op is aop nor sop.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Apr 12, 2024 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-12T12:56:45-04:00</updated>

		<published>2024-04-12T12:56:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112720#p112720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112720#p112720"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112720#p112720"><![CDATA[
Let's not only cover voices. Let's apply it to aop and sop as well<br><br>aop  @<br>Sop &amp;  <img alt="🙂" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f642.svg"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Fri Apr 12, 2024 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-12T12:44:43-04:00</updated>

		<published>2024-04-12T12:44:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112719#p112719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112719#p112719"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112719#p112719"><![CDATA[
Oh, I understand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> But not all...<br>Explain what you want to do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Apr 12, 2024 12:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-12T11:58:02-04:00</updated>

		<published>2024-04-12T11:58:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112718#p112718</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112718#p112718"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112718#p112718"><![CDATA[
No, can we apply this to AOPs?<br><br>@ aop <img alt="🙂" class="emoji smilies" draggable="false" src="//cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/svg/1f642.svg"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Fri Apr 12, 2024 11:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-12T09:53:46-04:00</updated>

		<published>2024-04-12T09:53:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112716#p112716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112716#p112716"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112716#p112716"><![CDATA[
What is Tcl AOP ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Apr 12, 2024 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-12T08:17:07-04:00</updated>

		<published>2024-04-12T08:17:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112714#p112714</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112714#p112714"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112714#p112714"><![CDATA[
thank you CrazyCat<br><br>Can I do this in TCL AOPs, for example ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Fri Apr 12, 2024 8:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-04-12T07:22:13-04:00</updated>

		<published>2024-04-12T07:22:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112713#p112713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112713#p112713"/>
		<title type="html"><![CDATA[Re: +v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112713#p112713"><![CDATA[
What do you mean ?<br>The user doesn't get his voice when he regains his previous nick ?<br><br>I made a little test (and some little modifications):<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">bind nick - * checkvoiceproc checkvoice {nick uhost handle chan newnick} {   set onchash [md5 [string tolower "${nick}:${chan}"]]   set nnchash [md5 [string tolower "${newnick}:${chan}"]]   if {[isvoice $newnick $chan]} {      pushmode $chan -v $newnick      set ::wasvoice($onchash) 1   } elseif {[info exists ::wasvoice($nnchash)] &amp;&amp; $::wasvoice($nnchash)==1} {      pushmode $chan +v $newnick      unset ::wasvoice($nnchash)   }}</code></pre></div> <strong>script</strong> This works. I use md5 of $nick:$chan (and $newnick:$chan) because arrays sometime dislike non alnum characters in keys<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Apr 12, 2024 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-04-12T06:35:44-04:00</updated>

		<published>2024-04-12T06:35:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112712#p112712</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112712#p112712"/>
		<title type="html"><![CDATA[+v voice ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112712#p112712"><![CDATA[
The autovoice part is all working fine when the user joins the bot sets +v automatically, but when that person changes nickname they remain +v<br><br>However it doesnt seem to be effecting the user when they change their nick to anything else.<br><div class="codebox"><p>Code: </p><pre><code>bind nick - * blaproc bla {nick uhost hand chan nn} { global wasvoice if {[isvoice $nn $chan]} {  pushmode $chan -v $nn  set wasvoice([string tolower $nick:$chan]) 1 } {  if {[info exists wasvoice([set nc [string tolower $nn:$chan]])]} {   pushmode $chan +v $nn   unset wasvoice($nc)  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Fri Apr 12, 2024 6:35 am</p><hr />
]]></content>
	</entry>
	</feed>
