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

	<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-12-26T13:53:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-26T13:53:18-04:00</updated>

		<published>2002-12-26T13:53:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14603#p14603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14603#p14603"/>
		<title type="html"><![CDATA[need help with kick/ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14603#p14603"><![CDATA[
Use the command "newchanban" (it's in tcl-commands.doc).<p>Statistics: Posted by Guest — Thu Dec 26, 2002 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-26T13:26:40-04:00</updated>

		<published>2002-12-26T13:26:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14602#p14602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14602#p14602"/>
		<title type="html"><![CDATA[need help with kick/ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14602#p14602"><![CDATA[
Somehow, things go wrong with this script. I wrote a script, when I type: <blockquote class="uncited"><div>!kb username some extra info here</div></blockquote>it bans the user and kicks them. But somehow, I get this "bug":<br>&lt;Bart&gt;!kb barttest I'm testing around<blockquote class="uncited"><div>[18:06] * Botje sets mode: +b *!*@*<br>[18:06] * barttest was kicked by Botje (I'm testing around)<br>[18:06] * Botje sets mode: -b *!*@*</div></blockquote>This is my code:<blockquote class="uncited"><div>bind pub ol !kb userban<br>proc userban {nick host handle channel arg} {<br>  global botnick<br>  if {[llength $arg] &lt; 1} {<br>    return 0<br>  }<br>  set vict [lindex $arg 0] <br>  set reas [lrange $arg 1 end] <br>  if {$reas == "" } { <br>    set reas "requested"<br>  }<br>  if {$vict == $botnick} {<br>    return 0<br>  }<br>  if {[isop $nick $channel]} {    <br>    set ban "*!*[string trimleft [getchanhost [lindex $arg 0] $channel] ~]" <br>    putserv "MODE $channel +b $ban"<br>    putkick $channel $vict $reas <br>  } else {<br>    if {([ishalfop $nick $channel] &amp;&amp; [isop $vict $channel]) } {<br>      putserv "PRIVMSG $channel :$nick, you can't kick someone who is an op on $channel"<br>    } else {      <br>      set ban "*!*[string trimleft [getchanhost [lindex $arg 0] $channel] ~]" <br>      putserv "MODE $channel +b $ban"<br>      putkick $channel $vict $reas<br>    }<br>  }  <br>}</div></blockquote>I hope someone can help me, I'm already trying to figure it out for two weeks, now I'm desperate <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by Guest — Thu Dec 26, 2002 1:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
