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

	<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>2003-07-21T10:40:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2003-07-21T10:40:39-04:00</updated>

		<published>2003-07-21T10:40:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23748#p23748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23748#p23748"/>
		<title type="html"><![CDATA[my tcl script adds users on every split :|]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23748#p23748"><![CDATA[
I'm not sure why your string match wouldn't work if the server name has a "." in it, but try "[onchan $nick $chan]" instead and see if that works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Mon Jul 21, 2003 10:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FIDe`]]></name></author>
		<updated>2003-07-21T06:17:23-04:00</updated>

		<published>2003-07-21T06:17:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23741#p23741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23741#p23741"/>
		<title type="html"><![CDATA[my tcl script adds users on every split :|]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23741#p23741"><![CDATA[
Hi all,<br>I have written a tcl script that makes a simple function: if someone changes the +l on a chan or removes it, he gets +d and kicked ; and if he's not added on the botnet, he's added with +d flags.<br>But there's a problem: on every split, the bot adds an user with +d flag, like:<br><em class="text-italics">(bot): | *!irc.cs.<br>(bot): | *!irc.cs.<br>(bot): | *!irc.cs.<br>(bot): | *!irc.ee.<br>(bot): | *!irc.ee.<br>(bot): | *!irc.ee.</em><br><br>here's a proc:<br><div class="codebox"><p>Code: </p><pre><code>proc remove_limit_mode {nick uhost hand chan mode victim} {global lamorhand fidenet hubbot if {$mode == "-l" &amp;&amp; ![string match "*.*" $nick]} {  if {!(([matchattr $hand +o]) &amp;&amp; ([matchattr $hand +b] || [matchattr $hand +n] || [matchattr $hand +b]))} {  if {[lsearch -exact [ channel info $chan ] "+noremovelimit" ] == -1} {return 0}   if {[isbotnetnick $hubbot]} {   dccbroadcast "MODIFICA NON AUTORIZZATA DEL LIMITE SU $chan DA PARTE DI $nick!$uhost ($lamorhand)"   }   set lamorhand [nick2hand $nick]   if {![validuser $lamorhand]} {   adduser $nick *!$uhost   chattr $nick |-ofmn $chan   chattr $nick |+dk $chan   }   chattr $lamorhand |+dk $chan   putquick "MODE $chan -o+b+l $nick *!*$uhost 1"   putquick "KICK $chan $nick :no no,lame!"  } }}</code></pre></div>I was thinking that <br> <em class="text-italics">if {$mode == "-l" &amp;&amp; ![string match "*.*" $nick]} {</em><br>was a good way to block such behaviour... but it doesn't worked.<br>Any help?<br>thanks all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2739">FIDe`</a> — Mon Jul 21, 2003 6:17 am</p><hr />
]]></content>
	</entry>
	</feed>
