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

	<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>2002-06-06T11:49:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[guppy]]></name></author>
		<updated>2002-06-06T11:49:00-04:00</updated>

		<published>2002-06-06T11:49:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7737#p7737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7737#p7737"/>
		<title type="html"><![CDATA[chattr |+v on detect /mode $chan +v $nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7737#p7737"><![CDATA[
you don't need to string tolower +v .. its already lowercase, also +V and +v are not the same on IRC .. you don't want to change $change to lowercase.<br><br>bind mode - "% +v" mode:plusvoice<br>bind mode - "% -v" mode:minusvoice<br><br>is what I prefer to use .. that way I have two seperate procs and its all nice and tidy.<br><br>oops, one other things ..<br>if {$change == "+v"} { or if {$change == "-v"} { would work fine .. no sense wasting CPU using string match.<br><br>Jeff<br><br>&lt;font size=-1&gt;[ This Message was edited by: guppy on 2002-06-06 09:50 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10">guppy</a> — Thu Jun 06, 2002 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stere0]]></name></author>
		<updated>2002-06-05T19:35:00-04:00</updated>

		<published>2002-06-05T19:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7720#p7720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7720#p7720"/>
		<title type="html"><![CDATA[chattr |+v on detect /mode $chan +v $nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7720#p7720"><![CDATA[
ok, I made the changes.<br>Ahh, and I discovered why it calls the proc twice when removing the voice of an user with the flag. It is because of some internal routine of eggdrop, that autovoice the user thus that it loses the voice, ignoring if he has the flag or not. To resolve the problem, I used a verification to know who calls the proc, if $nick == $botnick, so do nothing.<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4">stere0</a> — Wed Jun 05, 2002 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-06-04T20:12:00-04:00</updated>

		<published>2002-06-04T20:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7665#p7665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7665#p7665"/>
		<title type="html"><![CDATA[chattr |+v on detect /mode $chan +v $nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7665#p7665"><![CDATA[
why its being called twice I cannot say, but $victim is a nick, not a handle, so running handle based commands on it (validuser and chattr) is kinda pointless. Use nick2hand to get a handle.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Tue Jun 04, 2002 8:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stere0]]></name></author>
		<updated>2002-06-04T19:41:00-04:00</updated>

		<published>2002-06-04T19:41:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7664#p7664</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7664#p7664"/>
		<title type="html"><![CDATA[chattr |+v on detect /mode $chan +v $nick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7664#p7664"><![CDATA[
bind mode - * flag<br><br>proc flag {nick host handle channel change victim} {<br>   if {([string match "*[string tolower +v]*" [string tolower $change]])} {<br>     if {[validuser $victim]} { chattr $victim |+v $channel }<br>     return<br>   }<br>   if {([string match "*[string tolower -v]*" [string tolower $change]])} {<br>     if {[validuser $victim]} { chattr $victim |-v $channel }<br>     return<br>   }<br>}<br><br><br>Hi all,<br>  I wrote this code to give voice to user if detected ´mode +v´ in the channel, but it is with problem when trying to take off flag. The procedure is being called two times, one to take off flag and other to place again, somebody knows to say me why? Perhaps some of you could improve my code.<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4">stere0</a> — Tue Jun 04, 2002 7:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
