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

	<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>2004-07-21T17:41:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-21T17:41:29-04:00</updated>

		<published>2004-07-21T17:41:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38943#p38943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38943#p38943"/>
		<title type="html"><![CDATA[Strange double bans? Why is this happening?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38943#p38943"><![CDATA[
There is no bug!<br><br>Check the "set strict-host" setting in your config.  I use 0 myself and have no problems.  Stripping the leading ~ is a good idea.<br><br>Masking the nicks' host should solve the problem:<div class="codebox"><p>Code: </p><pre><code>maskhost &lt;nick!user@host&gt;    Returns: masked hostmask for the string given ("n!u@1.2.3.4" -&gt; "*!u@1.2.3.*",      "n!u@lame.com" -&gt; "*!u@lame.com", "n!u@a.b.edu" -&gt; "*!u@*.b.edu")</code></pre></div>Setting a "sticky" ban overrides the dynamicbans setting as it is a permanent ban.<br><br>**<strong class="text-strong">Edited</strong>**<br><br>Try this:<div class="codebox"><p>Code: </p><pre><code>set banmask [makehost [getchanhost $name $chan]]### makehostproc makehost {host} {return "*!*[lindex [split [maskhost $host] "!"] 1]"}</code></pre></div>Then you have:<div class="codebox"><p>Code: </p><pre><code>newchanban $chan $banmask $name VoiceBan "Voice Ban($nick)" 5 none</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jul 21, 2004 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Unknown1]]></name></author>
		<updated>2004-07-21T16:59:41-04:00</updated>

		<published>2004-07-21T16:59:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38942#p38942</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38942#p38942"/>
		<title type="html"><![CDATA[Strange double bans? Why is this happening?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38942#p38942"><![CDATA[
<em class="text-italics"><strong class="text-strong">Doooh! Can someone please move this thread to the right area? Sorry.. But this is a grey area as it could be a setting in the eggdrop's config file doing this.</strong></em><br><br>OK.. (Although I haven't tested it yet..) If it's the sticky that is doing this, isn't that kinda strange behavior.. Why would a sticky have a different ban mask?.. Seems like a bug to me?<br><br>Hmm.. The thing is.. I have to have +dynamicbans and -enforcebans for my channels.. So.. Doing the newchanban without a sticky and kicking them will allow the user to come back in at least one more time and get kicked again as it will not set the ban within the channel until that user rejoins..<br><br>And having it doing two different bans is bad also.. I have a trigger set so that a OP can remove a bots internal ban.. But the ban that the Op sees in the channel is not the sticky one which would need removing..<br><br>The Op would be doing <br><br>!remban *!~1033e432@4F431FF5F6A18B7D7DDC1E5A8319C3x <br><br>instead of <br><br>!remban ~1033e432!*@4F431FF5F6A18B7D7DDC1E5A8319C3x<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5050">Unknown1</a> — Wed Jul 21, 2004 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2004-07-21T16:49:29-04:00</updated>

		<published>2004-07-21T16:49:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38941#p38941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38941#p38941"/>
		<title type="html"><![CDATA[Strange double bans? Why is this happening?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38941#p38941"><![CDATA[
You've got newchanban setting a "sticky" ban .. ie. permanent!<br><br>Replace "sticky" at the end with "none" ie. newchanban $chan [getchanhost $name] VoiceBan "Voice Ban($nick)" 5 none<br><br>PS: TCL queries are posted in the TCL Forums not the Eggdrop Forum <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Wed Jul 21, 2004 4:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Unknown1]]></name></author>
		<updated>2004-07-21T16:25:54-04:00</updated>

		<published>2004-07-21T16:25:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38939#p38939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38939#p38939"/>
		<title type="html"><![CDATA[Strange double bans? Why is this happening?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38939#p38939"><![CDATA[
Here is a test script that does what I'm trying to fix...<br><br>What this does is allows Voices to do 5 min bans so the ops can monitor up and coming Ops... The kick is delayed 5 seconds because the kick seems to happen before the ban is set..<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "#fart !ban*" VoiceKickBan:pubm:triggerproc VoiceKickBan:pubm:trigger {nick uhost hand chan arg} {if { [isop $nick $chan] || [ishalfop $nick $chan] || [isvoice $nick $chan] } {set name [string range $arg 5 end]if { [ onchan $name $chan ] } {if { [isop $name $chan] || [ishalfop $name $chan] || [isvoice $name $chan] } {return 0}newchanban $chan [getchanhost $name] VoiceBan "Voice Ban($nick)" 5 stickyutimer 5 "[VoiceKickBan:Kick $nick $chan $name]"}}}proc VoiceKickBan:Kick {tnick tchan tname} {puthelp "KICK $tchan $tname :Voice Ban($tnick)"}</code></pre></div>I know this isn't pretty code.. But when I run this and someone uses it.. It does this in the channel..<br><blockquote class="uncited"><div>[15:16] &lt;@John[io]&gt; !ban Fresh9675511<br>[15:16] * BadX sets mode: +b *!~1033e432@4F431FF5F6A18B7D7DDC1E5A8319C3x<br>[15:17] * Fresh9675511 was kicked by BadX (Voice Ban(John[io]))</div></blockquote>But when I look at the Bots internal list.. It shows this..<br><blockquote class="uncited"><div>[15:23] &lt;badx&gt; ! [  1] ~1033e432!*@4F431FF5F6A18B7D7DDC1E5A8319C3x (expires at 22:31) (sticky)<br>[15:23] &lt;badx&gt;         VoiceBan: Voice Ban(John[io])<br>[15:23] &lt;badx&gt;         Created 22:26<br>[15:23] &lt;badx&gt; * [  2] *!~1033e432@4F431FF5F6A18B7D7DDC1E5A8319C3x (BadX!~BadX@DA5F351328F9237AD24DC0AD2BA4x) (active 00:11)</div></blockquote>Why is it setting the incorrect ban within the channel?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5050">Unknown1</a> — Wed Jul 21, 2004 4:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
