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

	<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>2008-08-18T15:35:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-08-18T15:35:44-04:00</updated>

		<published>2008-08-18T15:35:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84676#p84676</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84676#p84676"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84676#p84676"><![CDATA[
The error message suggests that the error is not with the script itself, but the editor/environment using an extended locale such as utf-8 or similar. Also, the error is not related to any other scripts, as the function containing the error is the same as provided in the posted code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Aug 18, 2008 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-18T15:05:39-04:00</updated>

		<published>2008-08-18T15:05:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84675#p84675</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84675#p84675"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84675#p84675"><![CDATA[
the solved code for u stranger eggdrop,  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><div class="codebox"><p>Code: </p><pre><code>proc ban:nick {nick uhost hand chan txt} {   set txt [split $txt]   set who [lindex $txt 0]   if {[isbotnick $who]} { return }   if {[llength $txt] &gt; 1} {     set reason [join [lrange $txt 1 "end"]]   } else {     set reason "($nick) Bad nickname, please change it and rejoin the channel!!"   }   if {$who == ""} {   puthelp "NOTICE $nick : use: !n &lt;nickname&gt;"return 0 }  putquick "MODE $chan +b $who*!*@*"  putserv "PRIVMSG X :kick $chan $who $reason"   putkick $chan $who $reason   return 1 }</code></pre></div> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Aug 18, 2008 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-18T14:15:38-04:00</updated>

		<published>2008-08-18T14:15:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84672#p84672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84672#p84672"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84672#p84672"><![CDATA[
i test this tcl and it work.<br><div class="codebox"><p>Code: </p><pre><code>*** tesuser ( ~Nor7on@21.Red-83-56-233.dynamicIP.rima-tde.net ) Entra al Canal #Nor7on&lt;Nor7on&gt; !n tesuser* Chasse pone modo: +b tesuser*!*@** tesuser ha sido KICKEADO por Chasse (Banned: (tesuser) Bad nickname, please change it and rejoin the channel!!)</code></pre></div>maybe u have other script what do troubles.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Aug 18, 2008 2:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-08-18T14:12:21-04:00</updated>

		<published>2008-08-18T14:12:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84670#p84670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84670#p84670"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84670#p84670"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set eggbantime "60"proc ban:nick {nick uhost hand chan text} { global botnick eggbantime  if {[botisop $chan]} {    if {[string length $text] &gt; 0} {      set badnick [lindex $text 0]      if {[onchan $badnick $chan]} {set bannick [nick2hand $badnick]if {[matchattr $bannick +fo $chan]} {putquick "NOTICE $nick :I can't ban $bannick."return}                     set reason "($badnick) Bad nickname, please change it and rejoin the channel!!" set mask $badnick*!*@*putquick "PRIVMSG X :ban $chan $mask 2 100 $reason"        newchanban $chan $mask $botnick $reason $eggbantime      } else { puthelp "notice $nick :no such nick on channel!" }    } else { puthelp "NOTICE $nick :!n &lt;nick&gt;" }  } else { puthelp "NOTICE $nick :No tengo OP." }}   </code></pre></div>try it work, tested in my eggdrop's.</div></blockquote>samo problem<br>[21:11] Tcl error [ban:nick]: invalid command name "б═б═"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Mon Aug 18, 2008 2:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-18T13:48:06-04:00</updated>

		<published>2008-08-18T13:48:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84667#p84667</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84667#p84667"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84667#p84667"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set eggbantime "60"proc ban:nick {nick uhost hand chan text} { global botnick eggbantime  if {[botisop $chan]} {    if {[string length $text] &gt; 0} {      set badnick [lindex $text 0]      if {[onchan $badnick $chan]} {set bannick [nick2hand $badnick]if {[matchattr $bannick +fo $chan]} {putquick "NOTICE $nick :I can't ban $bannick."return}                     set reason "($badnick) Bad nickname, please change it and rejoin the channel!!" set mask $badnick*!*@*putquick "PRIVMSG X :ban $chan $mask 2 100 $reason"        newchanban $chan $mask $botnick $reason $eggbantime      } else { puthelp "notice $nick :no such nick on channel!" }    } else { puthelp "NOTICE $nick :!n &lt;nick&gt;" }  } else { puthelp "NOTICE $nick :No tengo OP." }}   </code></pre></div>try it work, tested in my eggdrop's.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Aug 18, 2008 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-08-18T13:09:01-04:00</updated>

		<published>2008-08-18T13:09:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84665#p84665</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84665#p84665"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84665#p84665"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>#set the ban-time. (0 = perm)set eggbantime "60"bind pub o|o !n pub:nickne proc pub:nickne {nick uhost hand chan txt} {   global botnick eggbantime  set txt [split $txt]   set who [lindex $txt 0]   if {[isbotnick $who]} { return }   if {[llength $txt] &gt; 1} {     set reason [join [lrange $txt 1 "end"]]   } else {     set reason "($nick) Bad nickname, please change it and rejoin the channel!!"   }  set mask $who*!*@*  set x "X"   newchanban $chan $mask $botnick $reason $eggbantime  putmsg $x "kick $chan $who $reason"   putkick $chan $who $reason   return 1 }</code></pre></div>no tested, try it.</div></blockquote><br>something is wrong <br>[20:07] Tcl error [pub:nickne]: invalid command name "б═"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Mon Aug 18, 2008 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-08-18T12:01:16-04:00</updated>

		<published>2008-08-18T12:01:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84662#p84662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84662#p84662"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84662#p84662"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#set the ban-time. (0 = perm)set eggbantime "60"bind pub o|o !n pub:nickne proc pub:nickne {nick uhost hand chan txt} {   global botnick eggbantime  set txt [split $txt]   set who [lindex $txt 0]   if {[isbotnick $who]} { return }   if {[llength $txt] &gt; 1} {     set reason [join [lrange $txt 1 "end"]]   } else {     set reason "($nick) Bad nickname, please change it and rejoin the channel!!"   }  set mask $who*!*@*  set x "X"   newchanban $chan $mask $botnick $reason $eggbantime  putmsg $x "kick $chan $who $reason"   putkick $chan $who $reason   return 1 }</code></pre></div>no tested, try it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Aug 18, 2008 12:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Danik]]></name></author>
		<updated>2008-08-18T10:27:14-04:00</updated>

		<published>2008-08-18T10:27:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=84660#p84660</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=84660#p84660"/>
		<title type="html"><![CDATA[need help with a ban script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=84660#p84660"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !n pub:nickneproc pub:nickne {nick uhost hand chan txt} {  set txt [split $txt]  set who [lindex $txt 0]  if {[isbotnick $who]} { return }  if {[llength $txt] &gt; 1} {    set reason [join [lrange $txt 1 "end"]]  } else {    set reason "($nick) Bad nickname, please change it and rejoin the channel!!"  }  set x "X"  putmsg $x "kick $chan $who $reason"  putkick $chan $who $reason  return 1}</code></pre></div><br>ok this is the problem ... when I type on channel !n &lt;nick&gt;  ... the eggdrop bans users IP (mask)...<br><br>Can someone change this script so the eggdrop won't ban the mask, but just the nickname (ex: nick*!*@* )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9992">Danik</a> — Mon Aug 18, 2008 10:27 am</p><hr />
]]></content>
	</entry>
	</feed>
