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

	<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>2010-01-19T19:09:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-19T19:09:18-04:00</updated>

		<published>2010-01-19T19:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91753#p91753</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91753#p91753"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91753#p91753"><![CDATA[
yup :p thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Tue Jan 19, 2010 7:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2010-01-19T19:00:20-04:00</updated>

		<published>2010-01-19T19:00:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91752#p91752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91752#p91752"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91752#p91752"><![CDATA[
First off, there's no command named 'else'. That added with tcl's behavior to terminate commands on newline makes the following break:<div class="codebox"><p>Code: </p><pre><code>  if {$nick == Lea} {return}  else {</code></pre></div>'Else' should be another parameter for 'if', so it needs to be on the same line:<div class="codebox"><p>Code: </p><pre><code>if {$nick == Lea} {  return} else {</code></pre></div>Next, try adding some putlog's in there for debugging:<div class="codebox"><p>Code: </p><pre><code>proc mode:force_unban {nick uhost hand chan mode {target ""}} { global botnick putlog "Ban detected: Nick: $nick ($uhost) Handle: $hand Channel: $chan Mode: $mode ($target)" if {$nick == Lea} {  putlog "nickname is Lea, aborting"  return } else {  if {$target == ""} {   set target "$botnick"  }  putlog "Running regular expression..."  if {![regexp {^~(c|r)} $target]} {   putlog "No match!, starting timer..."   set timer [timer 30 [list pushmode $chan -b $target]]   putlog "Timer $timer started!"   return  } } putlog "end of proc"} bind mode -|- "*+b*" mode:force_unban</code></pre></div>That should let you see what is going on behind the scenes..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Tue Jan 19, 2010 7:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-19T18:31:28-04:00</updated>

		<published>2010-01-19T18:31:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91751#p91751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91751#p91751"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91751#p91751"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc mode:force_unban {nick uhost hand chan mode {target ""}} {  global botnick  if {$nick == Lea} {return}  else {   if {$target == ""} {    set target "$botnick"   }    if {![regexp {^~(c|r)} $target]} {     timer 30 [list pushmode $chan -b $target]     return    } }} bind mode -|- "*+b*" mode:force_unban</code></pre></div><br>why doesn't it work ?[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Tue Jan 19, 2010 6:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-19T03:10:46-04:00</updated>

		<published>2010-01-19T03:10:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91742#p91742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91742#p91742"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91742#p91742"><![CDATA[
*sign* <div class="codebox"><p>Code: </p><pre><code># forces any ban set on the channel to be removed in 30mins regardless of any channel settings proc mode:force_unban {nick uhost hand chan mode {target ""}} {  global botnick   if {$target == ""} {    set target "$botnick"   }    # ignore unrealircd's "channel" and "GEOS (realname)" bans    if {![regexp {^~(c|r)} $target]} {     timer 30 [list pushmode $chan -b $target]     return    } } bind mode -|- "*+b*" mode:force_unban</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Tue Jan 19, 2010 3:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-18T20:38:01-04:00</updated>

		<published>2010-01-18T20:38:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91739#p91739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91739#p91739"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91739#p91739"><![CDATA[
when i do the chan info i have that the ban time is setted to 30 min but when i ban it doesn't remove it.<br><br>Blake i don't wanna put the +b i wanna remove it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Mon Jan 18, 2010 8:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2010-01-18T17:26:41-04:00</updated>

		<published>2010-01-18T17:26:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91738#p91738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91738#p91738"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91738#p91738"><![CDATA[
TCL_no_TK wrote this a few  weeks back for me allows for the bot to set +b usernick and kick will remove ban after set amount of minutes<br> <div class="codebox"><p>Code: </p><pre><code>bind msg ho|ho bankick cmd:bankickproc cmd:bankick {nick host hand text} {  set chan [lindex [split $text] 0]  set user [lindex [split $text] 1]  set why [join [lrange [split $text] 2 end-1]]  set chk [join [lrange [split $text] end end]]  if {![regexp -- {^[0-9]} $chk]} {set why [join [lrange [split $text] 2 end]]} else {set bantime [join [lrange [split $text] end end]]}   if {[info exists bantime]} {    putserv "MODE $chan +b $user"    putserv "PRIVMSG ChanServ KICK $chan $user $why) (Issued By $nick"    timer $bantime [list putserv "MODE $chan -b $user"]    return 1   } else {    putserv "MODE $chan +b $user"    putserv "PRIVMSG ChanServ KICK $chan $user $why) (Issued By $nick"    return 1   } }</code></pre></div>works via private msg /msg botnick bankick chan nick reason time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Mon Jan 18, 2010 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-18T15:39:24-04:00</updated>

		<published>2010-01-18T15:39:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91736#p91736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91736#p91736"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91736#p91736"><![CDATA[
and...<br><div class="codebox"><p>Code: </p><pre><code>global-ban-time 30 </code></pre></div>or put:<br><div class="codebox"><p>Code: </p><pre><code>.chaninfo #yourchan</code></pre></div>and paste here your results.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Jan 18, 2010 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-18T15:27:18-04:00</updated>

		<published>2010-01-18T15:27:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91735#p91735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91735#p91735"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91735#p91735"><![CDATA[
yup i know but no results<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Mon Jan 18, 2010 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2010-01-18T15:26:03-04:00</updated>

		<published>2010-01-18T15:26:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91734#p91734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91734#p91734"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91734#p91734"><![CDATA[
Maybe try:<br><div class="codebox"><p>Code: </p><pre><code>.chanset #test -enforcebans +dynamicbans.chanset #test ban-time 30 </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Jan 18, 2010 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-18T15:02:58-04:00</updated>

		<published>2010-01-18T15:02:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91733#p91733</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91733#p91733"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91733#p91733"><![CDATA[
i know i already tried but without results so i'm triying to do it at a tcl code that i will put at the eggdrop<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Mon Jan 18, 2010 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-01-18T08:36:36-04:00</updated>

		<published>2010-01-18T08:36:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91726#p91726</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91726#p91726"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91726#p91726"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code> { nick host hand chan mode target } </code></pre></div> $nick = The Operator that done the mode change (in this case the ban).<br><br>I should mention that eggdrop already has a alot settings that control when it removes bans and how long they last on the channel. You can change/set this via the config file (global) or via DCC/Telnet command <strong class="text-strong">chanset</strong><br><br>Example: (setting all channel bans to be removed after 30mins on my channel <strong class="text-strong">#test</strong>, i would issue the following command in DCC/Telnet)<br><br>.chanset #test ban-time 30<br><br> <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=8130">TCL_no_TK</a> — Mon Jan 18, 2010 8:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KiMoW]]></name></author>
		<updated>2010-01-18T04:26:18-04:00</updated>

		<published>2010-01-18T04:26:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91724#p91724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91724#p91724"/>
		<title type="html"><![CDATA[somebody can help me please ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91724#p91724"><![CDATA[
bind mode - "*+b" Rem_ban<br><br><br>proc Rem_Ban { nick host hand chan mode target } {<br>if {$nick != Lea} {<br>set banmask $target<br>timer 30 [list putquick "MODE $chan -b $target" ]<br>}<br>} <br><br><br>the base is that if one user ban someone the eggdrop will remove the ban after 30 min<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11064">KiMoW</a> — Mon Jan 18, 2010 4:26 am</p><hr />
]]></content>
	</entry>
	</feed>
