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

	<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-12-08T18:05:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-12-08T18:05:08-04:00</updated>

		<published>2006-12-08T18:05:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68789#p68789</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68789#p68789"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68789#p68789"><![CDATA[
thank you for your suggestion,i will make it readable as soon as i have some free time on my hands.<br><br>The thing is i`m not such a good scripter ... a n00b actualy...<br>I just realised that .. even if i made it for me (i know where and what does) it needs to be ... readable (for problems like this)<br><br>Thank you again. <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=6346">mavericku</a> — Fri Dec 08, 2006 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-08T15:28:57-04:00</updated>

		<published>2006-12-08T15:28:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68781#p68781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68781#p68781"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68781#p68781"><![CDATA[
Mav, your code is hard to read, it would be a big help to you (and us! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> if you tabulate correctly and put closing braces below the line that if's and such finish on, like:<div class="codebox"><p>Code: </p><pre><code>if {$foo == "bar"} {         dosomething         dosomething else         if {$whatever == "foo"} {               more junk               blah blah         }}</code></pre></div>instead of like you had:<div class="codebox"><p>Code: </p><pre><code>if {[ischanban $tnick $drchan]} {      stuff      more stuff      blah blah stuff } </code></pre></div>Using tabs is, imo, preferable to using spaces, cos it's much easier to see where segments begin and end, compared to:<div class="codebox"><p>Code: </p><pre><code>if {$blah} {  if {$foo} {  } else {  if {$biz} {}</code></pre></div>Just some suggestions, it would make your script writing/debugging easier for you (and us! <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=7395">rosc2112</a> — Fri Dec 08, 2006 3:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-12-08T15:07:18-04:00</updated>

		<published>2006-12-08T15:07:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68780#p68780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68780#p68780"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68780#p68780"><![CDATA[
Thanks guys .. it works ... <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 <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Fri Dec 08, 2006 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-12-08T14:51:28-04:00</updated>

		<published>2006-12-08T14:51:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68778#p68778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68778#p68778"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68778#p68778"><![CDATA[
[ischanban] checks if the ban exists in the channel's banlist (not the bot's) so to check if a ban exists in the bot's ban list you need to use [isban] instead, so replacing the command will probably solve your problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 08, 2006 2:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-12-08T14:41:16-04:00</updated>

		<published>2006-12-08T14:41:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68777#p68777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68777#p68777"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68777#p68777"><![CDATA[
rosc2112, thanks for your help .. but it doesn't work .. <br>as i know the "killban" command removes a ban from the GLOBAL banlist .. not from a channel banlist... ( in the bots internal banlist) ...<br><br>correct me if i`m wrong ..<br><br>New code : <br><div class="codebox"><p>Code: </p><pre><code>bind pub n|o .ub pub:ub proc pub:ub {nick uhost hand chan text} {  global botnick drchan drreason opsc   if {[botisop $drchan]} {     if {[string length $text] &gt; 0} {       set tnick [lindex $text 0]       if {[ischanban $tnick $drchan]} {       killchanban $drchan $tnick       putquick "privmsg X :unban $drchan $tnick"       putserv "privmsg $opsc :$hand/$nick: I removed \002$tnick\002 from $drchan" }       if {[isban $tnick]}       killban $tnick       } else { puthelp "NOTICE $nick : I can't see that ban in the channel list" }     } else { puthelp "NOTICE $nick :SYNTAX: .ub &lt;nick!user@host&gt; - unbans an address" }   } else { puthelp "NOTICE $nick :Pfff n-am op!" } } </code></pre></div>Did i do something wrong? ... <br>Thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Fri Dec 08, 2006 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-07T18:51:32-04:00</updated>

		<published>2006-12-07T18:51:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68760#p68760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68760#p68760"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68760#p68760"><![CDATA[
put another test in there like:<div class="codebox"><p>Code: </p><pre><code>if {[isban $tnick]} {killban $tnick}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Dec 07, 2006 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mavericku]]></name></author>
		<updated>2006-12-08T15:08:35-04:00</updated>

		<published>2006-12-07T18:44:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=68759#p68759</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=68759#p68759"/>
		<title type="html"><![CDATA[unban help... [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=68759#p68759"><![CDATA[
a quick question guys..<br><br>i have a script that responds to .ub (host) and unbans the host trough killchanban and privmsg x ..<br>but it will do it only if the ban is on the channel banlist .. if it isn't it doesn't do nothing ..<br>can you help me out with this?<br>i'd like it to remove the ban from its internal banlist even if it is not on the channel banlist.<br><br>here is the code.<br><div class="codebox"><p>Code: </p><pre><code>bind pub n|o .ub pub:ubproc pub:ub {nick uhost hand chan text} { global botnick drchan drreason opsc  if {[botisop $drchan]} {    if {[string length $text] &gt; 0} {      set tnick [lindex $text 0]      if {[ischanban $tnick $drchan]} {       killchanban $drchan $tnick      putquick "privmsg X :unban $drchan $tnick"       putserv "privmsg $opsc :$hand/$nick: Am scos ban-ul \002$tnick\002 de pe $drchan"      } else { puthelp "prvmsg X :unban $drchan $tnick" }    } else { puthelp "NOTICE $nick :SYNTAX: .ub &lt;nick!user@host&gt; - unbans an address" }  } else { puthelp "NOTICE $nick :Pfff n-am op!" }}</code></pre></div>Thanks in advance ...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6346">mavericku</a> — Thu Dec 07, 2006 6:44 pm</p><hr />
]]></content>
	</entry>
	</feed>
