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

	<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-06-30T01:25:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-30T01:25:32-04:00</updated>

		<published>2007-06-30T01:25:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74025#p74025</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74025#p74025"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74025#p74025"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * do_jn_msg proc do_jn_msg {nick uhost hand chan} { global botnick jn_msg_done badwordsif {$nick == "X" || $nick == $botnick} { return 0 } if {[info exists jn_msg_done($nick:$chan)]} { return 0 } set jn_msg_done($nick:$chan) 1 timer 3 [list unset jn_msg_done($nick:$chan)] puthelp "NOTICE $nick :Welcome to $chan" foreach x $badwords {if {[string match -nocase *$x* $nick]} {set bannick($nick) "$nick!*@*"putserv "KICK $chan $nick :BaD NIcK MaTcH FRoM [string toupper $x]"return 0} }}</code></pre></div>working now<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Sat Jun 30, 2007 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-28T03:12:12-04:00</updated>

		<published>2007-06-28T03:12:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73962#p73962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73962#p73962"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73962#p73962"><![CDATA[
i think the problem is, i dont know how to use list command<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $cflag B]} { list badnick_chk $nick $uhost $hand $chan }</code></pre></div>list adds backslashes and/or braces as appropriate to give the correct form for a command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Thu Jun 28, 2007 3:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-27T18:51:55-04:00</updated>

		<published>2007-06-27T18:51:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73948#p73948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73948#p73948"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73948#p73948"><![CDATA[
Unless you post full code and full errorInfo (.set errorInfo) I'm not going to help you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 27, 2007 6:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-26T22:16:49-04:00</updated>

		<published>2007-06-26T22:16:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73919#p73919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73919#p73919"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73919#p73919"><![CDATA[
this's proc for ban/kick badnick<div class="codebox"><p>Code: </p><pre><code>proc badnick_chk {nick uhost hand chan} {global bannick notc botnick badwordsforeach x $badwords {if {[string match -nocase *$x* $nick]} {set bannick($nick) "$nick!*@*"putsrv "KICK $chan $nick :Badnick match from [string toupper $x]"return 1}}return 0}</code></pre></div>i'm using channel flag: here's the code if badnick is enabled on specific channel<div class="codebox"><p>Code: </p><pre><code>if {[matchattr $cflag B]} { badnick_chk $nick $uhost $hand $chan }</code></pre></div>then return tcl error: unmatched open brace in list<br><br>if $nick with special character joined <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br>* {asshole (~user@host) has joined # <br><br>i think with that code will return like this:<br><br>if {[matchattr $cflag B]} { badnick_chk <span style="text-decoration:underline">{asshole $uhost $hand $chan }</span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Tue Jun 26, 2007 10:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-26T06:35:52-04:00</updated>

		<published>2007-06-26T06:35:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73907#p73907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73907#p73907"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73907#p73907"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach x $badwords { if {[string match -nocase *$x* $nick]} {  set bannick($nick) "$nick!*@*"  putserv "KICK $chan $nick :Badword detected"  break }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 26, 2007 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-26T00:56:19-04:00</updated>

		<published>2007-06-26T00:56:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73904#p73904</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73904#p73904"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73904#p73904"><![CDATA[
Yes, it's alist of badwords for nick and swearing text<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Tue Jun 26, 2007 12:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-26T00:39:20-04:00</updated>

		<published>2007-06-26T00:39:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73901#p73901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73901#p73901"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73901#p73901"><![CDATA[
I mean it's a list right?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 26, 2007 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-25T20:43:53-04:00</updated>

		<published>2007-06-25T20:43:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73895#p73895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73895#p73895"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73895#p73895"><![CDATA[
badwords - [censored] fukker asshole<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Mon Jun 25, 2007 8:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-24T08:10:12-04:00</updated>

		<published>2007-06-24T08:10:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73865#p73865</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73865#p73865"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73865#p73865"><![CDATA[
[string tolower $badwords] is not a list, what is $badwords?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jun 24, 2007 8:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-23T22:13:20-04:00</updated>

		<published>2007-06-23T22:13:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73851#p73851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73851#p73851"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73851#p73851"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach x [string tolower $badwords] {if {[string match "*$x*" [string tolower $nick]]} {set bannick($nick) "$nick!*@*"putserv "KICK $chan $nick :Badword detected"}</code></pre></div>added that lines, will return the error. when user with special character joining channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Sat Jun 23, 2007 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-23T17:08:34-04:00</updated>

		<published>2007-06-23T17:08:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73827#p73827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73827#p73827"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73827#p73827"><![CDATA[
The code I gave you must not give such an error. Did you rehash after loading it? Also, a full errorInfo (.set errorInfo) is much more helpful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 23, 2007 5:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-23T05:51:20-04:00</updated>

		<published>2007-06-23T05:51:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73814#p73814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73814#p73814"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73814#p73814"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * do_jn_msg proc do_jn_msg {nick uhost hand chan} {   global botnick jn_msg_done     if {$nick == "X" || $nick == $botnick} {     return 0   }   if {[info exists jn_msg_done($nick:$chan)]} {     return 0   }   set jn_msg_done($nick:$chan) 1   timer 3 [list unset jn_msg_done($nick:$chan)]  puthelp "NOTICE $nick :Welcome to $chan"   return 0 } </code></pre></div>Tcl error [do_jn_msg]: unmatched open brace in list <br><br>still error, it happen when user with special character joined. like {user or }user or \user.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Sat Jun 23, 2007 5:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-23T05:00:52-04:00</updated>

		<published>2007-06-23T05:00:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73810#p73810</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73810#p73810"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73810#p73810"><![CDATA[
That's because you're passing a string instead of a list to [timer]. Replace:<div class="codebox"><p>Code: </p><pre><code>timer 3 "unset jn_msg_done($nick:$chan)"</code></pre></div>with<div class="codebox"><p>Code: </p><pre><code>timer 3 [list unset jn_msg_done($nick:$chan)]</code></pre></div>And remove the [filt $nick] line it's not necessary.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 23, 2007 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Reynaldo]]></name></author>
		<updated>2007-06-22T23:23:28-04:00</updated>

		<published>2007-06-22T23:23:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73806#p73806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73806#p73806"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73806#p73806"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind join - * do_jn_msgproc do_jn_msg {nick uhost hand chan} {  global botnick jn_msg_done  set nick [filt $nick]  if {$nick == "X" || $nick == $botnick} {    return 0  }  if {[info exists jn_msg_done($nick:$chan)]} {    return 0  }  set jn_msg_done($nick:$chan) 1  timer 3 "unset jn_msg_done($nick:$chan)"  puthelp "NOTICE $nick :Welcome to $chan"  return 0}</code></pre></div>Tcl error [do_jn_msg]: unmatched open brace in list<br><br>$nick join with special character will return that error.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6218">Reynaldo</a> — Fri Jun 22, 2007 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T20:49:44-04:00</updated>

		<published>2007-06-22T20:49:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73804#p73804</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73804#p73804"/>
		<title type="html"><![CDATA[unmatched open brace in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73804#p73804"><![CDATA[
pushmode is for modes and not for kicks. Your problem is with using lists and strings, it's not recommended to solve it using regexp filtering.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 8:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
