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

	<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>2005-12-13T20:49:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ni0]]></name></author>
		<updated>2005-12-13T20:08:42-04:00</updated>

		<published>2005-12-13T20:08:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58233#p58233</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58233#p58233"/>
		<title type="html"><![CDATA[Can anyone help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58233#p58233"><![CDATA[
Sir_Fz also the first code that u wrote was working perfect.<br>Here is the 1st code that u give:)<br><div class="codebox"><p>Code: </p><pre><code>unbind dcc o|o +ban *dcc:+banbind dcc o|o +ban ban:+ban proc ban:+ban {handle idx arg} { if {$arg == ""} {  putlog "SYNTAX: .+ban &lt;hostmask&gt; [channel] [time] [comment]"  return 0 } set host [lindex [set arg [split $arg]] 0] if {[string first # [lindex $arg 1]] == 0} {  set chan [lindex $arg 1] } if {![info exists chan]} {  if {[string is integer [lindex $arg 1]]} {   set time [lindex $arg 1]   set comment "$handle: [join [lrange $arg 2 end]]"  } {   set time 0   set comment "$handle: [join [lrange $arg 1 end]]"  } } {  if {[string is integer [lindex $arg 2]]} {   set time [lindex $arg 2]   set comment "$handle: [join [lrange $arg 3 end]]"  } {   set time 0   set comment "$handle: [join [lrange $arg 2 end]]"  } } if {![string match *!*@* $host]} {  putlog "Invalid hostmask, please enter one in format nick!ident@host."  return 0 } if {$comment == ""} {  set comment "Banned by $handle" } if {[info exists chan]} {  newchanban $chan $host $handle $comment $time  putlog "Added $host on $chan." } {  newban $host $handle $comment $time  putlog "Added $host on global banlist" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7096">Ni0</a> — Tue Dec 13, 2005 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-13T20:49:57-04:00</updated>

		<published>2005-12-13T19:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58232#p58232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58232#p58232"/>
		<title type="html"><![CDATA[Can anyone help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58232#p58232"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>unbind dcc o|o +ban *dcc:+ban; bind dcc o|o +ban ban:+ban  proc ban:+ban {handle idx arg} {  if {$arg == ""} {   *dcc:+ban $handle $idx $arg   return 0  }  set date [strftime %d/%m/%y]  set defr "Banned by $handle@$date" set host [lindex [split $arg] 0] if {[string first # [set c [lindex [split $arg] 1]]] == 0} {  if {[string first % [set t [lindex [split $arg] 2]]] == 0} {   if {[set r [join [lrange [split $arg] 3 end]]] == ""} {    set r $defr   }   *dcc:+ban $handle $idx "$host $c $t $handle@$date: $r"  } } {  if {[string first % [set t [lindex [split $arg] 1]]] == 0} {   if {[set r [join [lrange [split $arg] 2 end]]] == ""} {    set r $defr   }   *dcc:+ban $handle $idx "$host $t $handle@$date: $r"  } {   if {[set r [join [lrange [split $arg] 1 end]]] == ""} {    set r $defr   }   *dcc:+ban $handle $idx "$host $handle@$date: $r"  } }}</code></pre></div><blockquote class="uncited"><div>set defr "Banned by $handle@$date"</div></blockquote>This is the default reason.<br><br>Edit: <br>- Changed $hand to $handle<br>- Changed the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 13, 2005 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ni0]]></name></author>
		<updated>2005-12-12T14:54:14-04:00</updated>

		<published>2005-12-12T14:54:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58214#p58214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58214#p58214"/>
		<title type="html"><![CDATA[Can anyone help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58214#p58214"><![CDATA[
i can`t understant y but the code that u give me to replace it it`s not working. It`s banning my handle and it`s puts at reason the host that i want to ban...(i`ve try that one before i post here)<br>Let me explain u again what i want.<br><br>First i want that i said to the previous post. Then i want also at command .kickban nick to be public the oper who did it. And a last one i want the bots have a default reason if someone adds a ban without a reason.<br>let me give some examples <br><br>@ Bot (i`m User1)<br>.kickban Ni0 I hate u<br>@Channel<br>* Ni0 was kicked by Bot (Banned: User1: I hate u)<br><br><br>@ Bot<br>.+ban Ni0!*@* I Hate u also<br>@channel<br>* Ni0 was kicked by Bot (Banned: User1: I hate u also)<br><br>@ Bot<br>.+ban Ni0!*@*<br>@channel<br>* Ni0 was kicked by Bot (Banned: User1: Without Reason)<br><br>That`s all. Thx:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7096">Ni0</a> — Mon Dec 12, 2005 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-12T13:27:56-04:00</updated>

		<published>2005-12-12T13:27:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58209#p58209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58209#p58209"/>
		<title type="html"><![CDATA[Can anyone help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58209#p58209"><![CDATA[
Replace<div class="codebox"><p>Code: </p><pre><code>*dcc:+ban $handle $idx "$arg ($handle@$date)"</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>*dcc:+ban $handle $idx "$handle@$date : $arg"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Dec 12, 2005 1:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ni0]]></name></author>
		<updated>2005-12-12T11:20:35-04:00</updated>

		<published>2005-12-12T11:20:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58205#p58205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58205#p58205"/>
		<title type="html"><![CDATA[Can anyone help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58205#p58205"><![CDATA[
i have a script ban.tcl this little script adds($handle%d/%m/%y)<br>to your bans' reason, so banned person can see who set a ban on him.<br>the script is :<br>&gt; unbind dcc o|o +ban *dcc:+ban;<br>&gt; bind dcc o|o +ban ban:+ban<br>&gt;<br>&gt; proc ban:+ban {handle idx arg} {<br>&gt;   if {$arg == ""} {<br>&gt;     *dcc:+ban $handle $idx $arg<br>&gt;     return 0<br>&gt;   }<br>&gt;   set date [strftime %d/%m/%y]<br>&gt;   *dcc:+ban $handle $idx "$arg ($handle@$date)"<br>&gt; }<br>&gt;<br>&gt; but when i do +ban bla bla i get (banned : reason (Handle))<br>&gt; and i want to change it to (banned : hanlde : reason)<br>&gt; but when i am trying to change it my egg does down<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7096">Ni0</a> — Mon Dec 12, 2005 11:20 am</p><hr />
]]></content>
	</entry>
	</feed>
