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

	<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>2004-01-17T06:50:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-01-17T06:50:14-04:00</updated>

		<published>2004-01-17T06:50:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32598#p32598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32598#p32598"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32598#p32598"><![CDATA[
Now I realized what the problem was, try to use string map to add "\" before [] in the chan name in order to skip []'s.<br><br>this code is by User:<div class="codebox"><p>Code: </p><pre><code>[string map {\\ \\\\ \[ \\\[ \] \\\]} $c]</code></pre></div>so if the channel name is #[rip] this will return #\[rip\]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 17, 2004 6:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-16T23:54:20-04:00</updated>

		<published>2004-01-16T23:54:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32591#p32591</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32591#p32591"/>
		<title type="html"><![CDATA[sir fz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32591#p32591"><![CDATA[
the scipt i have posted is the one that the bot uses instead of the need-op option in the eggdrop.conf ... and the channel is not added in the conf file but by the .+chan command so i cannot change the command by what the bot is requesting an @ ot the speciffic channel<p>Statistics: Posted by Guest — Fri Jan 16, 2004 11:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-01-16T18:29:45-04:00</updated>

		<published>2004-01-16T18:29:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32584#p32584</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32584#p32584"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32584#p32584"><![CDATA[
This error is not from the code you posted. You have an error in your need-op setting or in a need-op script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jan 16, 2004 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-16T18:19:04-04:00</updated>

		<published>2004-01-16T18:19:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32582#p32582</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32582#p32582"/>
		<title type="html"><![CDATA[ok]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32582#p32582"><![CDATA[
i changed all the [lindex $arg 0/1] and [lrange $arg 0/1] to [lindex [split $arg] 0/1] and [lrange [split $arg] 0/1] and it's still giving the same output which is:<br><br>[17:18] Tcl error in script for 'need-op':<br>[17:18] invalid command name "rip"<br><br>and for the need-unban, need-invite is the same<p>Statistics: Posted by Guest — Fri Jan 16, 2004 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Souperman]]></name></author>
		<updated>2004-01-16T08:20:59-04:00</updated>

		<published>2004-01-16T08:20:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32570#p32570</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32570#p32570"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32570#p32570"><![CDATA[
Please be more specific.  What changes have you made (preferably paste the script again)?  Can you paste the output on the partyline, if any?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=801">Souperman</a> — Fri Jan 16, 2004 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-16T04:02:28-04:00</updated>

		<published>2004-01-16T04:02:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32563#p32563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32563#p32563"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32563#p32563"><![CDATA[
it still doesn't work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by Guest — Fri Jan 16, 2004 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Souperman]]></name></author>
		<updated>2004-01-16T02:32:07-04:00</updated>

		<published>2004-01-16T02:32:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32557#p32557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32557#p32557"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32557#p32557"><![CDATA[
In proc cssup you still have a few "[lindex $arg 0]" instead of "[lindex [split $arg] 0]".<br><br>You also have an lrange a little after that which probably needs to be converted back into a string using join, i.e. "set msg [join [lrange [split $arg] 0 end]]".  Incidentally, this is kinda pointless, since using a range of "0" to "end" effectively means "the whole list".  Not sure what you're trying to achieve there.<br><br>Something that would help a lot for anyone trying to read your code would be proper indentation, e.g.:<br>Unclear:<div class="codebox"><p>Code: </p><pre><code>proc foo {bar baz} {putlog "$bar"if {[string compare -nocase $foo hello]} {putlog "hello"}}</code></pre></div>Good indentation == more readable:<div class="codebox"><p>Code: </p><pre><code>proc foo {bar baz} {  putlog "$bar"  if {[string compare -nocase $foo hello]} {    putlog "hello"  }}</code></pre></div>Finally, I'd suggest you read <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a>, if you haven't already done so.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=801">Souperman</a> — Fri Jan 16, 2004 2:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-01-15T18:51:54-04:00</updated>

		<published>2004-01-15T18:51:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=32550#p32550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=32550#p32550"/>
		<title type="html"><![CDATA[special characters in chan names]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=32550#p32550"><![CDATA[
hi, i'm using a script for op/invite/unban/clear in a chan but the chan name has special characters and the bot doesn't execute the commands it says invalid command name "rip"...#[rip] is the name of the channel<br>i read the post about the split command in tcl and i tried it but it doesn't work that way neither.. i'm paste-ing the script here... please help if you know how to solve this problem.<br><br>set regnick "Ma3oXuCTka"<br>set nspass "ku4ka22"<br>set nsserv "NS!<a href="mailto:NickServ@UniBG.services">NickServ@UniBG.services</a>"<br>set csserv "CS!<a href="mailto:ChanServ@Unibg.services">ChanServ@Unibg.services</a>"<br>set csnick "CS"<br>set nsnick "NS"<br>proc deban {arg} {<br>global botnick regnick<br><br>#unbanva se ako e bannat<br>if {[string match "*[string toupper $botnick]*" [string toupper $regnick]]} {<br>        set c [lindex [split $arg] 0]<br>        putlog "Opit za mahane na ban ot kanala $c prez CS...."<br>        putserv "PRIVMSG CS :UNBAN $c"<br>        putserv "PRIVMSG CS :INVITE $c"<br>        putserv "PRICMSG CS :CLEAR $c ALL"<br>        }<br>}<br><br># vzimane na op ot CS<br>proc getop {arg} {<br>global botnick regnick csnick<br>if {[string match "*[string toupper $botnick]*" [string toupper $regnick]]} {<br>        set c [lindex [split $arg] 0]<br>        putlog "Opit za vzimane na OP v kanal $c ot CS ...."<br>        putserv "PRIVMSG $csnick :op $c $botnick"<br>        putserv "PRIVMSG $csnick :op all"<br>        }<br>}<br><br>#Ako kanal e invite only da se Invite-va prez CS<br>proc invite {arg} {<br>global botnick regnick csnick<br>if {[string match "*[string toupper $botnick]*" [string toupper $regnick]]} {<br>        set c [lindex [split $arg] 0]<br>        putlog "Opit bota da se invite-ne v kanal $c prez CS ..."<br>        putserv "PRIVMSG $csnick :INVITE $c"<br>        }<br>}<br><br># Vku4vane i izklu4vane na postoqnni opiti vzimane na op ot CS v kanali kadeto bota e addnat<br># .cssup #lame      -&gt; vklu4va<br># .cssup #lame off  -&gt; izklu4va<br><br>proc cssup {hand idx arg} {<br>if {[lindex $arg 1]!="off"} {<br>        channel set [lindex $arg 0] need-op "getop [lindex [split $arg] 0]"<br>        channel set [lindex $arg 0] need-unban "deban [lindex [split $arg] 0]"<br>        channel set [lindex $arg 0] need-invite "invite [lindex [split $arg] 0]"<br>        putlog "Ot tozi moment natatuk se iska op [lindex [split $arg] 0] ot CS"<br>        } {<br>        channel set [lindex [split $arg] 0] need-op ""<br>        channel set [lindex [split $arg] 0] need-unban ""<br>        channel set [lindex [split $arg] 0] need-invite ""<br>        putlog "Iziskvaneto na op v [lindex [split $arg] 0] ot CS e izklu4eno !"<br>}<br>}<br><br># identvane kogato trqbwa<br>proc notice_a {from keyword arg} {<br>global nsnick csnick nspass nsserv csserv<br>set servresp [lindex [split $arg] 1]<br>set msg [lrange [split $arg] 0 end]<br><br>if {$from==$nsserv} {<br>        if {[lindex [split $arg] 1]==":This"} {<br>        putserv "PRIVMSG $nsnick :IDENTIFY $nspass"<br>        putlog "$nsnick iska da se IDENTIFY..." }<br>        }<br><br><br>return "$from $keyword $arg"<br>}<br><br><br><br>proc n_311 {a b c} {<br>putlog "$c"<br>return "$a $b $c"<br>}<br><br># blidz<br>unbind dcc o|o msg *dcc:msg<br>bind dcc n|- msg *dcc:msg<br><br>bind dcc n cssup cssup<br>bind raw - 311 n_311<br>bind raw - notice notice_a<br>putlog "Services Support by bonboncho zareden !!"<br><br><br>thanks in advance<p>Statistics: Posted by Guest — Thu Jan 15, 2004 6:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
