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

	<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>2007-12-02T12:18:22-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-12-02T12:18:22-04:00</updated>

		<published>2007-12-02T12:18:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78916#p78916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78916#p78916"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78916#p78916"><![CDATA[
<blockquote class="uncited"><div><strong class="text-strong">Find this code:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } {   if {[onchan $text]} {     putquick "KICK $chan $text :Requested"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div><strong class="text-strong">Replace with this:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } { set reason1 [lrange $text 1 end]  if {[onchan $text]} {     putquick "KICK $chan $text :$reason1"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div>It should kick with a reason now.</div></blockquote>A few issues here, you use $text both as a string and as a list at the same time. Decide to use one form, clearly indicating which.<br>As for the syntax of "KICK", it's "KICK &lt;channel&gt; &lt;nickname&gt; :&lt;reason&gt;". In your case, if "text" holds both the nickname and reason as a list, you'd be supplying too many arguments to the kick-command (in effect, the kick-reason would be the second word in "text", dropping anything beyond it).<br><br>Also, if you do not specify which channel to test (when using the onchan command), it'll see if the nickname is on any channel the eggdrop is monitoring rather than any speciffic.<br><br>Now, since you use pub-trigger, having "text" as a list is not an option, as users generally can't be trusted to provide valid list-structures. Hence, don't use lindex/lrange directly on it.<br><br>Somewhat fixed, no support or warranties of any kind provided. Still relies on the binding to determine access to the command (binding not included).<div class="codebox"><p>Code: </p><pre><code>proc proc_kick [list nick host hand chan text] {  set target [lindex [split $text] 0]  set reason [lindex [split $text] 1 end]  if {[onchan $target $chan]} {    putserv "KICK $chan $target :$reason"  } else {    puthelp "PRIVMSG $chan :$target not in channel"  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Dec 02, 2007 12:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-12-02T03:05:00-04:00</updated>

		<published>2007-12-02T03:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78906#p78906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78906#p78906"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78906#p78906"><![CDATA[
krieg: You need to be more specific with the "it is not working.." statement.<br><br>For any assistance to be given an error message (if any) needs to be posted and/or exactly what is (or not) happening.<br><br>Posting the result of ".set errorInfo" would be especially helpful. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sun Dec 02, 2007 3:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-12-01T23:41:34-04:00</updated>

		<published>2007-12-01T23:41:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78902#p78902</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78902#p78902"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78902#p78902"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>for example:<br><br>!kick nick reason<br>!kick Slay You have bad nickname, change it! Try again to join.<br><br>*** Slay was kicked by Botnick (You have bad nickname, change it! Try again to join.)</div></blockquote><strong class="text-strong">Find this code:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } {   if {[onchan $text]} {     putquick "KICK $chan $text :Requested"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div><strong class="text-strong">Replace with this:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } { set reason1 [lrange $text 1 end]  if {[onchan $text]} {     putquick "KICK $chan $text :$reason1"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div>It should kick with a reason now.</div></blockquote>it is not working..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Sat Dec 01, 2007 11:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-12-01T01:30:15-04:00</updated>

		<published>2007-12-01T01:30:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78852#p78852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78852#p78852"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78852#p78852"><![CDATA[
<blockquote class="uncited"><div>for example:<br><br>!kick nick reason<br>!kick Slay You have bad nickname, change it! Try again to join.<br><br>*** Slay was kicked by Botnick (You have bad nickname, change it! Try again to join.)</div></blockquote><strong class="text-strong">Find this code:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } {   if {[onchan $text]} {     putquick "KICK $chan $text :Requested"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div><strong class="text-strong">Replace with this:</strong><div class="codebox"><p>Code: </p><pre><code>proc proc_kick { nick uhost hand chan text } { set reason1 [lrange $text 1 end]  if {[onchan $text]} {     putquick "KICK $chan $text :$reason1"   } else { putserv "PRIVMSG $chan :\002$text\002 Not In Channel: \002$chan\002" } } </code></pre></div>It should kick with a reason now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Sat Dec 01, 2007 1:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-30T01:07:28-04:00</updated>

		<published>2007-11-30T01:07:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78833#p78833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78833#p78833"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78833#p78833"><![CDATA[
<blockquote class="uncited"><div>These kinds of op command scripts are very lame, as all they do is duplicate the commands you already have available via the dcc console, and they create great big security risks.<br><br>Would be much easier to learn the commands than rely on unsafe and buggy scripts such as this.  I wouldn't expect people here to support/fix that script (but ya never know..)</div></blockquote>is there any tcl like this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Fri Nov 30, 2007 1:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-11-30T00:23:18-04:00</updated>

		<published>2007-11-30T00:23:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78828#p78828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78828#p78828"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78828#p78828"><![CDATA[
These kinds of op command scripts are very lame, as all they do is duplicate the commands you already have available via the dcc console, and they create great big security risks.<br><br>Would be much easier to learn the commands than rely on unsafe and buggy scripts such as this.  I wouldn't expect people here to support/fix that script (but ya never know..)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Nov 30, 2007 12:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-30T00:06:45-04:00</updated>

		<published>2007-11-30T00:06:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78826#p78826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78826#p78826"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78826#p78826"><![CDATA[
I have not knowledge about editing tcl or scripting much more how can I add reason of kicks.<br><br>And in this tcl "!unban" command is not working. Please check for us. Example;<br><br>I added someone to banlist,<br>"!ban nick"<br>[05:54:41] *** BOTNICK sets mode: +b *!<a href="mailto:identd@95C46BA0.3059D662.7DFEEA7C.IP">identd@95C46BA0.3059D662.7DFEEA7C.IP</a><br>later I try !unban it is not working,<br>[05:57:11] (X): !unban *!<a href="mailto:identd@95C46BA0.3059D662.7DFEEA7C.IP">identd@95C46BA0.3059D662.7DFEEA7C.IP</a><br>[05:56:58] (X): !unban !*@95C46BA0.3059D662.7DFEEA7C.IP<br>[05:57:00] (BOTNICK): !*@95C46BA0.3059D662.7DFEEA7C.IP Is Not In The Ban List<br>[05:57:11] (X): !unban *!<a href="mailto:identd@95C46BA0.3059D662.7DFEEA7C.IP">identd@95C46BA0.3059D662.7DFEEA7C.IP</a><br>[05:57:22] *** X sets mode: -b *!<a href="mailto:arEna@95C46BA0.3059D662.7DFEEA7C.IP">arEna@95C46BA0.3059D662.7DFEEA7C.IP</a><br><br>Note: X=me, BOTNICK=Bot (;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Fri Nov 30, 2007 12:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-11-29T19:09:28-04:00</updated>

		<published>2007-11-29T19:09:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78818#p78818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78818#p78818"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78818#p78818"><![CDATA[
<blockquote class="uncited"><div>and how can I add reason of kick in !kick command?</div></blockquote>Try editing the script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Nov 29, 2007 7:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-29T18:11:35-04:00</updated>

		<published>2007-11-29T18:11:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78816#p78816</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78816#p78816"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78816#p78816"><![CDATA[
for example:<br><br>!kick nick reason<br>!kick Slay You have bad nickname, change it! Try again to join.<br><br>*** Slay was kicked by Botnick (You have bad nickname, change it! Try again to join.)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Thu Nov 29, 2007 6:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-29T18:06:51-04:00</updated>

		<published>2007-11-29T18:06:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78815#p78815</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78815#p78815"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78815#p78815"><![CDATA[
and how can I add reason of kick in !kick command?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Thu Nov 29, 2007 6:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-11-29T17:46:24-04:00</updated>

		<published>2007-11-29T17:46:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78812#p78812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78812#p78812"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78812#p78812"><![CDATA[
eggdrop logging is configured in the "##### LOG FILES #####" section of eggdrop.conf.<br><br>Log files are stored in the "logs" folder.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Nov 29, 2007 5:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-29T18:06:37-04:00</updated>

		<published>2007-11-29T00:52:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78775#p78775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78775#p78775"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78775#p78775"><![CDATA[
How can I active log system?<br><br>/msg $botnick getlog **/**/**<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Thu Nov 29, 2007 12:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[krieg]]></name></author>
		<updated>2007-11-23T22:22:30-04:00</updated>

		<published>2007-11-23T22:22:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78647#p78647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78647#p78647"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78647#p78647"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>proc proc_unban { nick uhost hand chan text } {   if {[ischanban $text $chan]} {     pushmode $chan -b $text   } else { putserv "PRIVMSG $chan :$text Is Not In The Ban List" } } </code></pre></div>replace it with:<br><div class="codebox"><p>Code: </p><pre><code>proc proc_unban { nick uhost hand chan text } {   if {[ischanban $text $chan]} {     killchanban $chan $text    pushmode $chan -b $text  } else { putserv "PRIVMSG $chan :$text Is Not In The Ban List" } }</code></pre></div>and then use !unban command it will also remove from bots internal list and the channel as well. You dont need to DCC everytime.</div></blockquote>Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9478">krieg</a> — Fri Nov 23, 2007 10:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-11-23T21:03:06-04:00</updated>

		<published>2007-11-23T21:03:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78643#p78643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78643#p78643"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78643#p78643"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc proc_unban { nick uhost hand chan text } {   if {[ischanban $text $chan]} {     pushmode $chan -b $text   } else { putserv "PRIVMSG $chan :$text Is Not In The Ban List" } } </code></pre></div>replace it with:<br><div class="codebox"><p>Code: </p><pre><code>proc proc_unban { nick uhost hand chan text } {   if {[ischanban $text $chan]} {     killchanban $chan $text    pushmode $chan -b $text  } else { putserv "PRIVMSG $chan :$text Is Not In The Ban List" } }</code></pre></div>and then use !unban command it will also remove from bots internal list and the channel as well. You dont need to DCC everytime.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Nov 23, 2007 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-11-23T20:48:19-04:00</updated>

		<published>2007-11-23T20:48:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=78641#p78641</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=78641#p78641"/>
		<title type="html"><![CDATA[add set channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=78641#p78641"><![CDATA[
<blockquote class="uncited"><div>I added two !gban how can I unban that? I couldn't do.. For example: <br>(I'm founder)<br><br>[20:47:20] * ChanServ sets mode: -bb slayish!*@78617340.DC928A45.B7FB3F36.IP grim!*@638A85FE.3FF72A06.661CEC5E.IP<br><br>[20:47:37] * Psychoid sets mode: +bb grim!*@638A85FE.3FF72A06.661CEC5E.IP slayish!*@78617340.DC928A45.B7FB3F36.IP<br><br>Psychoid is my bot. It is banning always this two IPs. How can I hinder?</div></blockquote>Remove them from the bots internal ban list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Nov 23, 2007 8:48 pm</p><hr />
]]></content>
	</entry>
	</feed>
