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

	<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>2006-01-28T21:39:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-01-28T21:39:58-04:00</updated>

		<published>2006-01-28T21:39:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59881#p59881</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59881#p59881"/>
		<title type="html"><![CDATA[help with ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59881#p59881"><![CDATA[
Try:<div class="codebox"><p>Code: </p><pre><code>set target_uhost [getchanhost $nick]set banmask *!*[lindex [split [maskhost $target_uhost] "!"] 1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Jan 28, 2006 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[dusk]]></name></author>
		<updated>2006-01-28T21:07:09-04:00</updated>

		<published>2006-01-28T21:07:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59877#p59877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59877#p59877"/>
		<title type="html"><![CDATA[help with ban]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59877#p59877"><![CDATA[
I'm using a public kickban command but yesterday I noticed something goes wrong...<br><div class="codebox"><p>Code: </p><pre><code>(01:54) Join: tripke (triplelion@d54C1F0D0.access.telenet.be) has join(01:54) &lt;@reef&gt; !kb tripke(01:54) * Doogie sets mode: +b *!*triplelio@d54C1F0D0.access.telenet.be(01:54) Kick: tripke was kicked by Doogie (banned) on #chan(01:54) Join: tripke (triplelion@d54C1F0D0.access.telenet.be) has join</code></pre></div>As you can see the bot doesn't set the correct ban (missing n after triplelio)<br>This is the proc I'm working with :<div class="codebox"><p>Code: </p><pre><code>proc kickban {nik uhost hand chn txt} {global botnickset nick [lindex $txt 0]set reas [lrange $txt 1 end]set target [getchanhost $nick $chn]set banmask "*!*[string trimleft [string range $target [string first "!" $target] end] ?^~-_+?]"if {[string tolower $nick] != [string tolower $botnick]} {if {![string length [string trim $reas]]} {   set reas "banned by \[${hand}/\002${nik}\002] - Geen reden opgegeven..."} else {   set reas "banned by \[${hand}/\002${nik}\002] - $reas"}   putserv "mode $chn +b $banmask"putserv "kick $chn $nick $reas"}}</code></pre></div>If someone could take a look please :$<br><br><br>GRTZ<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6042">dusk</a> — Sat Jan 28, 2006 9:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
